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 ...@@ -88,6 +88,8 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT
val cardNumber = call.argument<String>("card_number") val cardNumber = call.argument<String>("card_number")
val getRegDb = call.argument<String>("get_reg_db") val getRegDb = call.argument<String>("get_reg_db")
val amount = call.argument<String>("amount") val amount = call.argument<String>("amount")
val outletId = call.argument<String>("outlet_id")
val persoReff = call.argument<String>("perso_reff")
val topupInquiryResponse = _mifareTicketing?.topupInquiry( val topupInquiryResponse = _mifareTicketing?.topupInquiry(
outletName?.lowercase(Locale.ROOT)!!.replace(" ", "-"), outletName?.lowercase(Locale.ROOT)!!.replace(" ", "-"),
"M", "M",
...@@ -98,6 +100,8 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT ...@@ -98,6 +100,8 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT
deviceTimestamp = sdf.format(timeNow), deviceTimestamp = sdf.format(timeNow),
requestTimestamp = sdf.format(timeNow), requestTimestamp = sdf.format(timeNow),
getRegDb!!, getRegDb!!,
outletId!!,
persoReff!!,
) )
result.success(Gson().toJson(topupInquiryResponse)) result.success(Gson().toJson(topupInquiryResponse))
} }
...@@ -110,6 +114,7 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT ...@@ -110,6 +114,7 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT
val paymentMethod = call.argument<String>("payment_method") val paymentMethod = call.argument<String>("payment_method")
val paymentProvider = call.argument<String>("payment_provider") val paymentProvider = call.argument<String>("payment_provider")
val tid = call.argument<String>("tid") val tid = call.argument<String>("tid")
val paymentNotes = call.argument<String>("payment_notes")
val topupInquiryResponse = _mifareTicketing?.topupConfirm( val topupInquiryResponse = _mifareTicketing?.topupConfirm(
cardNumber!!, cardNumber!!,
...@@ -121,7 +126,8 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT ...@@ -121,7 +126,8 @@ class MainActivity : MethodChannel.MethodCallHandler, FlutterActivity(), MifareT
"TOP_SS${Date().time}", "TOP_SS${Date().time}",
"TOP_SS${Date().time}", "TOP_SS${Date().time}",
tid!!, tid!!,
) paymentNotes!!,
)
result.success(Gson().toJson(topupInquiryResponse)) 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