dynamic tpdu
This commit is contained in:
parent
014bdc18e3
commit
0804f7b762
@ -604,8 +604,10 @@ public class TMSSetupsImpl implements TMSSetups{
|
||||
SystemParamsOperation.getInstance().setAppId(data);
|
||||
}else if (TextUtils.equals(name, "qr_decimal_enable")) {
|
||||
SystemParamsOperation.getInstance().setQrDecimalEnable(parseBoolean(data));
|
||||
}else if (TextUtils.equals(name, "qr_refund_enable")){
|
||||
} else if (TextUtils.equals(name, "qr_refund_enable")){
|
||||
SystemParamsOperation.getInstance().setQrRefundEnable(parseBoolean(data));
|
||||
} else if (TextUtils.equals(name, "tpdu_value")){
|
||||
SystemParamsOperation.getInstance().setTpduValue(data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -6,6 +6,7 @@ import com.utsmyanmar.paylibs.isobuilder.ISOMode;
|
||||
import com.utsmyanmar.paylibs.model.MsgField;
|
||||
import com.utsmyanmar.paylibs.utils.LogUtil;
|
||||
import com.utsmyanmar.paylibs.utils.core_utils.ByteUtil;
|
||||
import com.utsmyanmar.paylibs.utils.core_utils.SystemParamsOperation;
|
||||
import com.utsmyanmar.paylibs.utils.enums.HostName;
|
||||
|
||||
import java.util.Map;
|
||||
@ -18,6 +19,9 @@ public abstract class BaseISOMsgX {
|
||||
byte[] newSendBytes = EncodePackage.assembly(map, msgIdentifier, 0, "0000000000",hostName);
|
||||
|
||||
String BPCTPDU = "6005150000"; //UAT
|
||||
|
||||
BPCTPDU = SystemParamsOperation.getInstance().getTpduValue();
|
||||
|
||||
// String BPCTPDU = "6005170000"; //PrePro
|
||||
|
||||
if(isoMode == ISOMode.BOTH_HEADER_TPDU) {
|
||||
|
||||
@ -1099,6 +1099,17 @@ public class SystemParamsOperation {
|
||||
saveSystemParamsSettings(params);
|
||||
}
|
||||
|
||||
public void setTpduValue(String value) {
|
||||
SystemParamsSettings params = getSystemParamsSettings();
|
||||
params.setTpduValue(value);
|
||||
saveSystemParamsSettings(params);
|
||||
}
|
||||
|
||||
public String getTpduValue(){
|
||||
SystemParamsSettings params = getSystemParamsSettings();
|
||||
return params.getTpduValue();
|
||||
}
|
||||
|
||||
public boolean getTpduStatus(){
|
||||
SystemParamsSettings params = getSystemParamsSettings();
|
||||
return params.isTpdu_status();
|
||||
|
||||
@ -132,6 +132,8 @@ public class SystemParamsSettings implements Serializable {
|
||||
|
||||
private String lastSuccessTranx = "000001";
|
||||
|
||||
private String tpduValue = "6005150000";
|
||||
|
||||
private String appId = "";
|
||||
|
||||
private String appKey = "";
|
||||
@ -164,7 +166,7 @@ public class SystemParamsSettings implements Serializable {
|
||||
|
||||
private boolean print_iso_status = false;
|
||||
|
||||
private boolean demo_status = true;
|
||||
private boolean demo_status = false;
|
||||
|
||||
private boolean ecr_status = false;
|
||||
|
||||
@ -310,6 +312,14 @@ public class SystemParamsSettings implements Serializable {
|
||||
this.disabledMessage = disabledMessage;
|
||||
}
|
||||
|
||||
protected void setTpduValue(String tpduValue) {
|
||||
this.tpduValue = tpduValue;
|
||||
}
|
||||
|
||||
protected String getTpduValue() {
|
||||
return tpduValue;
|
||||
}
|
||||
|
||||
public void setAppId(String appId) {
|
||||
this.appId = appId;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user