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"
|
applicationId "com.utsmm.kbz"
|
||||||
minSdk 24
|
minSdk 24
|
||||||
targetSdk 33
|
targetSdk 33
|
||||||
versionCode 4
|
versionCode 5
|
||||||
versionName "1.04"
|
versionName "1.05"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -11,8 +11,8 @@
|
|||||||
"type": "SINGLE",
|
"type": "SINGLE",
|
||||||
"filters": [],
|
"filters": [],
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"versionCode": 4,
|
"versionCode": 5,
|
||||||
"versionName": "1.04",
|
"versionName": "1.05",
|
||||||
"outputFile": "app-release.apk"
|
"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(), "%.2f", payDetail.getAmount()/100.0);
|
||||||
String amount = String.format(Locale.getDefault(), "%d", (int)(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);
|
KPayQRRequest.QrRequest kPayQRRequest = KPayViewModel.createQR(amount, merchantId);
|
||||||
Disposable qrDi = KPayViewModel.generateQR(kPayQRRequest)
|
Disposable qrDi = KPayViewModel.generateQR(kPayQRRequest)
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
|
|||||||
@ -79,6 +79,8 @@ public class SignOnProcess {
|
|||||||
flag = true;
|
flag = true;
|
||||||
LogUtil.d(TAG, "Success PIK result code:" + res);
|
LogUtil.d(TAG, "Success PIK result code:" + res);
|
||||||
}
|
}
|
||||||
|
listener.onSuccessSignOn();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user