Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Dolan SelfService Topup
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Faizol
Dolan SelfService Topup
Commits
b3caf093
Commit
b3caf093
authored
May 05, 2023
by
Izol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added topupInquiry : outletId, persoReff
added topupConfirm : paymentNotes
parent
69c6e8c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
MainActivity.kt
...rc/main/kotlin/com/example/self_service_3/MainActivity.kt
+7
-1
No files found.
android/app/src/main/kotlin/com/example/self_service_3/MainActivity.kt
View file @
b3caf093
...
@@ -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
))
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment