Commit 0b12ef4e authored by Izol's avatar Izol

update mifsre mdd lib

parent 394ce8ed
...@@ -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.22rev3', ext: 'aar') implementation(group: 'com.mdd.topup', name: 'mifare_mdd_lib', version: '0.1.24', 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')
......
...@@ -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 "";
} }
......
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