Commit 0b12ef4e authored by Izol's avatar Izol

update mifsre mdd lib

parent 394ce8ed
......@@ -96,7 +96,7 @@ dependencies {
// library mdd
// 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.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')
......
......@@ -457,9 +457,10 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
metodeBayar,
status;
String cleanAmount = amount.replaceAll(RegExp(r'[^0-9.]'), ''); // Hapus karakter non-numerik kecuali titik
int parsedAmount = int.parse(cleanAmount);
info = await StartService.topupBalanceCard(cardNumber, parsedAmount);
info = await StartService.topupBalanceCard(cardNumber, int.parse(amount));
// String cleanAmount = amount.replaceAll(RegExp(r'[^0-9.]'), ''); // Hapus karakter non-numerik kecuali titik
// int parsedAmount = int.parse(cleanAmount);
// info = await StartService.topupBalanceCard(cardNumber, parsedAmount);
if (info == null) {
tapBalance();
return "";
......@@ -482,6 +483,8 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
tid = PreferencesHelper.getString('outletname');
tid = tid.substring(tid.length - 4);
print("lastBalance $lastBalance");
print("prevBalance $prevBalance");
if (int.parse(lastBalance) > int.parse(prevBalance!)) {
countMax = 0;
var result = await StartService.topUpConfirm(
......@@ -607,6 +610,7 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
} else {
print('topup gagal');
isShowingDialog = true;
dataQris == null;
}
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