fixed can't call sign on on demo mode
This commit is contained in:
parent
c7ac1e90bf
commit
5efcc7ef24
File diff suppressed because one or more lines are too long
@ -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.
Binary file not shown.
Binary file not shown.
@ -11,8 +11,8 @@
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"attributes": [],
|
||||
"versionCode": 4,
|
||||
"versionName": "1.04",
|
||||
"versionCode": 5,
|
||||
"versionName": "1.05",
|
||||
"outputFile": "app-release.apk"
|
||||
}
|
||||
],
|
||||
|
||||
@ -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())
|
||||
|
||||
@ -79,6 +79,8 @@ public class SignOnProcess {
|
||||
flag = true;
|
||||
LogUtil.d(TAG, "Success PIK result code:" + res);
|
||||
}
|
||||
listener.onSuccessSignOn();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user