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
0b12ef4e
Commit
0b12ef4e
authored
Jun 09, 2023
by
Izol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update mifsre mdd lib
parent
394ce8ed
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
build.gradle
android/app/build.gradle
+1
-1
home_page.dart
lib/ui/pages/home_page.dart
+7
-3
No files found.
android/app/build.gradle
View file @
0b12ef4e
...
@@ -96,7 +96,7 @@ dependencies {
...
@@ -96,7 +96,7 @@ dependencies {
// library mdd
// library mdd
// change 11
// change 11
implementation
(
group:
'com.mdd.topup'
,
name:
'mifare_mdd_lib'
,
version:
'0.1.2
2rev3
'
,
ext:
'aar'
)
implementation
(
group:
'com.mdd.topup'
,
name:
'mifare_mdd_lib'
,
version:
'0.1.2
4
'
,
ext:
'aar'
)
implementation
(
group:
'com.mdd.payment'
,
name:
'aar-deviceid-release'
,
version:
'2.0.6'
,
ext:
'aar'
)
implementation
(
group:
'com.mdd.payment'
,
name:
'aar-deviceid-release'
,
version:
'2.0.6'
,
ext:
'aar'
)
implementation
(
group:
'com.mdd.library'
,
name:
'android-escpos-receipt'
,
version:
'1.0.1'
,
ext:
'aar'
)
implementation
(
group:
'com.mdd.library'
,
name:
'android-escpos-receipt'
,
version:
'1.0.1'
,
ext:
'aar'
)
implementation
(
group:
'com.mdd.payment'
,
name:
'nativecripto-release'
,
version:
'2.0.1'
,
ext:
'aar'
)
implementation
(
group:
'com.mdd.payment'
,
name:
'nativecripto-release'
,
version:
'2.0.1'
,
ext:
'aar'
)
...
...
lib/ui/pages/home_page.dart
View file @
0b12ef4e
...
@@ -457,9 +457,10 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
...
@@ -457,9 +457,10 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
metodeBayar
,
metodeBayar
,
status
;
status
;
String
cleanAmount
=
amount
.
replaceAll
(
RegExp
(
r'[^0-9.]'
),
''
);
// Hapus karakter non-numerik kecuali titik
info
=
await
StartService
.
topupBalanceCard
(
cardNumber
,
int
.
parse
(
amount
));
int
parsedAmount
=
int
.
parse
(
cleanAmount
);
// String cleanAmount = amount.replaceAll(RegExp(r'[^0-9.]'), ''); // Hapus karakter non-numerik kecuali titik
info
=
await
StartService
.
topupBalanceCard
(
cardNumber
,
parsedAmount
);
// int parsedAmount = int.parse(cleanAmount);
// info = await StartService.topupBalanceCard(cardNumber, parsedAmount);
if
(
info
==
null
)
{
if
(
info
==
null
)
{
tapBalance
();
tapBalance
();
return
""
;
return
""
;
...
@@ -482,6 +483,8 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
...
@@ -482,6 +483,8 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
tid
=
PreferencesHelper
.
getString
(
'outletname'
);
tid
=
PreferencesHelper
.
getString
(
'outletname'
);
tid
=
tid
.
substring
(
tid
.
length
-
4
);
tid
=
tid
.
substring
(
tid
.
length
-
4
);
print
(
"lastBalance
$lastBalance
"
);
print
(
"prevBalance
$prevBalance
"
);
if
(
int
.
parse
(
lastBalance
)
>
int
.
parse
(
prevBalance
!))
{
if
(
int
.
parse
(
lastBalance
)
>
int
.
parse
(
prevBalance
!))
{
countMax
=
0
;
countMax
=
0
;
var
result
=
await
StartService
.
topUpConfirm
(
var
result
=
await
StartService
.
topUpConfirm
(
...
@@ -607,6 +610,7 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
...
@@ -607,6 +610,7 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
}
else
{
}
else
{
print
(
'topup gagal'
);
print
(
'topup gagal'
);
isShowingDialog
=
true
;
isShowingDialog
=
true
;
dataQris
==
null
;
}
}
return
""
;
return
""
;
}
}
...
...
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