Commit b3caf093 authored by Izol's avatar Izol

added topupInquiry : outletId, persoReff

added topupConfirm : paymentNotes
parent 69c6e8c3
......@@ -88,6 +88,8 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT
val cardNumber = call.argument<String>("card_number")
val getRegDb = call.argument<String>("get_reg_db")
val amount = call.argument<String>("amount")
val outletId = call.argument<String>("outlet_id")
val persoReff = call.argument<String>("perso_reff")
val topupInquiryResponse = _mifareTicketing?.topupInquiry(
outletName?.lowercase(Locale.ROOT)!!.replace(" ", "-"),
"M",
......@@ -98,6 +100,8 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT
deviceTimestamp = sdf.format(timeNow),
requestTimestamp = sdf.format(timeNow),
getRegDb!!,
outletId!!,
persoReff!!,
)
result.success(Gson().toJson(topupInquiryResponse))
}
......@@ -110,6 +114,7 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT
val paymentMethod = call.argument<String>("payment_method")
val paymentProvider = call.argument<String>("payment_provider")
val tid = call.argument<String>("tid")
val paymentNotes = call.argument<String>("payment_notes")
val topupInquiryResponse = _mifareTicketing?.topupConfirm(
cardNumber!!,
......@@ -121,6 +126,7 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT
"TOP_SS${Date().time}",
"TOP_SS${Date().time}",
tid!!,
paymentNotes!!,
)
result.success(Gson().toJson(topupInquiryResponse))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment