uat url changed
This commit is contained in:
parent
0f7b57e516
commit
b4ecd40b46
@ -14,8 +14,8 @@ android {
|
|||||||
applicationId "com.utsmm.kbz"
|
applicationId "com.utsmm.kbz"
|
||||||
minSdk 24
|
minSdk 24
|
||||||
targetSdk 33
|
targetSdk 33
|
||||||
versionCode 15
|
versionCode 17
|
||||||
versionName "1.14"
|
versionName "1.16"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -172,9 +172,9 @@ public class TransactionResultFragment extends DataBindingFragment implements Da
|
|||||||
} else if (isQRPayNonSuccessTransaction(transactionType, payDetail)) {
|
} else if (isQRPayNonSuccessTransaction(transactionType, payDetail)) {
|
||||||
// startPrintProcess(false);
|
// startPrintProcess(false);
|
||||||
if(transactionType == TransactionsType.MMQR_REFUND){
|
if(transactionType == TransactionsType.MMQR_REFUND){
|
||||||
showDeclineDialog("QR Refund Failed!");
|
showDeclineDialog("QR Refund Failed! \n" + payDetail.getTradeResultDes());
|
||||||
}else{
|
}else{
|
||||||
showDeclineDialog("QR Payment Failed!");
|
showDeclineDialog("QR Payment Failed! \n" + payDetail.getTradeResultDes());
|
||||||
}
|
}
|
||||||
navigateToMainScreen();
|
navigateToMainScreen();
|
||||||
} else if (isQRPaySuccessTransaction(transactionType, payDetail)) {
|
} else if (isQRPaySuccessTransaction(transactionType, payDetail)) {
|
||||||
|
|||||||
@ -144,7 +144,6 @@ public class QRRefundProcessFragment extends DataBindingFragment {
|
|||||||
private void handleRefundResponse(KPayRefund.RefundResponse response, String referenceNo, String orgAmount) {
|
private void handleRefundResponse(KPayRefund.RefundResponse response, String referenceNo, String orgAmount) {
|
||||||
if (response != null && response.getResponse() != null && "REFUND_SUCCESS".equalsIgnoreCase(response.getResponse().getRefundStatus())) {
|
if (response != null && response.getResponse() != null && "REFUND_SUCCESS".equalsIgnoreCase(response.getResponse().getRefundStatus())) {
|
||||||
LogUtil.d(TAG, "Refund successful!");
|
LogUtil.d(TAG, "Refund successful!");
|
||||||
|
|
||||||
String refundAmount = response.getResponse().getRefundAmount();
|
String refundAmount = response.getResponse().getRefundAmount();
|
||||||
long text = POSUtil.getInstance().convertAmount(refundAmount);
|
long text = POSUtil.getInstance().convertAmount(refundAmount);
|
||||||
|
|
||||||
|
|||||||
@ -40,15 +40,13 @@ public class RefundCertificateManager {
|
|||||||
if (tmsAddress == null || tmsAddress.trim().isEmpty()) {
|
if (tmsAddress == null || tmsAddress.trim().isEmpty()) {
|
||||||
LogUtil.e(TAG, "TMS address is empty");
|
LogUtil.e(TAG, "TMS address is empty");
|
||||||
return;
|
return;
|
||||||
}
|
};
|
||||||
|
|
||||||
String downloadBase =
|
// String downloadBase = tmsAddress.trim() + "/api/v1/file/download?filePath=";
|
||||||
tmsAddress.trim() + "/api/v1/file/download?filePath=";
|
String downloadBase = tmsAddress.trim() + "/file/download?filePath=";
|
||||||
|
|
||||||
String certUrl =
|
String certUrl = SystemParamsOperation.getInstance().getCertificateUrl();
|
||||||
SystemParamsOperation.getInstance().getCertificateUrl();
|
String clientCertUrl = SystemParamsOperation.getInstance().getCertificateClientUrl();
|
||||||
String clientCertUrl =
|
|
||||||
SystemParamsOperation.getInstance().getCertificateClientUrl();
|
|
||||||
|
|
||||||
if (certUrl == null || clientCertUrl == null) {
|
if (certUrl == null || clientCertUrl == null) {
|
||||||
LogUtil.e(TAG, "Certificate URLs are missing");
|
LogUtil.e(TAG, "Certificate URLs are missing");
|
||||||
@ -58,9 +56,9 @@ public class RefundCertificateManager {
|
|||||||
String timestamp = String.valueOf(System.currentTimeMillis());
|
String timestamp = String.valueOf(System.currentTimeMillis());
|
||||||
String signature = generateSignature(timestamp);
|
String signature = generateSignature(timestamp);
|
||||||
|
|
||||||
LogUtil.d(TAG, "Download base => " + downloadBase);
|
// LogUtil.d(TAG, "Download base => " + downloadBase);
|
||||||
LogUtil.d(TAG, "Cert URL => " + certUrl);
|
// LogUtil.d(TAG, "Cert URL => " + certUrl);
|
||||||
LogUtil.d(TAG, "Client Cert URL => " + clientCertUrl);
|
// LogUtil.d(TAG, "Client Cert URL => " + clientCertUrl);
|
||||||
|
|
||||||
// ---------- CA CERT ----------
|
// ---------- CA CERT ----------
|
||||||
DownloadUtil.downloadCertificateRx(
|
DownloadUtil.downloadCertificateRx(
|
||||||
|
|||||||
@ -290,8 +290,8 @@ public class NetworkModule {
|
|||||||
tmsAddress = getTMSUrlFromNative();
|
tmsAddress = getTMSUrlFromNative();
|
||||||
}
|
}
|
||||||
|
|
||||||
String baseUrl = tmsAddress.trim() + "/api/v1/"; //for on prim
|
// String baseUrl = tmsAddress.trim() + "/api/v1/"; //for on prim
|
||||||
// String baseUrl = tmsAddress.trim() + "/"; //for uat
|
String baseUrl = tmsAddress.trim() + "/"; //for uat
|
||||||
|
|
||||||
final Gson gson =
|
final Gson gson =
|
||||||
new GsonBuilder().create();
|
new GsonBuilder().create();
|
||||||
|
|||||||
@ -42,10 +42,10 @@ public class SystemParamsSettings implements Serializable {
|
|||||||
|
|
||||||
// private String tmsAddress = "https://tms.smile-mm.com";
|
// private String tmsAddress = "https://tms.smile-mm.com";
|
||||||
// private String tmsAddress = "http://128.199.170.203";
|
// private String tmsAddress = "http://128.199.170.203";
|
||||||
private String tmsAddress = "http://sirius-nest.utsmyanmar.com";
|
// private String tmsAddress = "http://sirius-nest.utsmyanmar.com";
|
||||||
// private String tmsAddress = "https://api-tms-uat.kbzbank.com:8443/sirius"; //for uat
|
private String tmsAddress = "https://api-tms-uat.kbzbank.com:8443/sirius"; //for uat
|
||||||
private String ereceiptAddress = "http://receipt-nest.utsmyanmar.com"; //for on prime
|
// private String ereceiptAddress = "http://receipt-nest.utsmyanmar.com"; //for on prime
|
||||||
// private String ereceiptAddress = "https://api-tms-uat.kbzbank.com:8443/receipt"; //for uat
|
private String ereceiptAddress = "https://api-tms-uat.kbzbank.com:8443/receipt"; //for uat
|
||||||
|
|
||||||
private String terminalName = "";
|
private String terminalName = "";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user