fixed can't call sign on on demo mode

This commit is contained in:
kizzy 2025-11-07 15:34:00 +07:00
parent c7ac1e90bf
commit 5efcc7ef24
8 changed files with 7 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -14,8 +14,8 @@ android {
applicationId "com.utsmm.kbz"
minSdk 24
targetSdk 33
versionCode 4
versionName "1.04"
versionCode 5
versionName "1.05"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Binary file not shown.

View File

@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 4,
"versionName": "1.04",
"versionCode": 5,
"versionName": "1.05",
"outputFile": "app-release.apk"
}
],

View File

@ -139,14 +139,8 @@ public class QRConnectingFragment extends DataBindingFragment implements DataBin
// String amount = String.format(Locale.getDefault(), "%.2f", payDetail.getAmount()/100.0);
String amount = String.format(Locale.getDefault(), "%d", (int)(payDetail.getAmount()/100.0));
String billNumber = "YU239850";
String additionalData = "Notes about purchase";
DemoQRRequest demoQRRequest = new DemoQRRequest(merchantId,terminalId,amount);
WaveQRRequest waveQRRequest = new WaveQRRequest(merchantId,terminalId,amount,billNumber,additionalData);
KPayQRRequest.QrRequest kPayQRRequest = KPayViewModel.createQR(amount, merchantId);
Disposable qrDi = KPayViewModel.generateQR(kPayQRRequest)
.subscribeOn(Schedulers.io())

View File

@ -79,6 +79,8 @@ public class SignOnProcess {
flag = true;
LogUtil.d(TAG, "Success PIK result code:" + res);
}
listener.onSuccessSignOn();
return;
}