银联分期

dev-discount
胡锐 3 years ago
parent a52a7b9e81
commit 0459a6920f
  1. 2
      hai-cweb/src/main/java/com/cweb/controller/HighTestController.java
  2. 12
      hai-cweb/src/main/java/com/cweb/controller/pay/OrderController.java
  3. 9
      hai-service/src/main/java/com/hai/config/CommonSysConfig.java
  4. 2
      hai-service/src/main/java/com/hai/config/UnionStagingPayConfig.java
  5. 11
      hai-service/src/main/resources/prod-9401/commonConfig.properties
  6. 11
      hai-service/src/main/resources/prod/commonConfig.properties

File diff suppressed because one or more lines are too long

@ -516,7 +516,17 @@ public class OrderController {
order.setPaySerialNo(orgTrace);
highOrderService.updateOrderDetail(order);
return ResponseMsgUtil.success(unionStagingPayConfig.advancePay(order.getPaySerialNo(),order.getPaySerialNo(),order.getPayPrice(), CommonSysConst.getSysConfig().getUnionStagingPayNotifyUrl(),request));
// 分期
JSONObject advancePay = unionStagingPayConfig.advancePay(order.getPaySerialNo(), order.getPaySerialNo(), order.getPayPrice(), CommonSysConst.getSysConfig().getUnionStagingPayNotifyUrl(), request);
if (advancePay == null) {
log.error("OrderController --> orderToPay() ERROR", "");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "唤起分期支付失败");
}
if (!advancePay.getString("sysRetCode").equals("000000")) {
log.error("OrderController --> orderToPay() ERROR", "");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "唤起分期支付失败");
}
return ResponseMsgUtil.success(advancePay);
} catch (Exception e) {
log.error("orderToPay error!", e);

@ -47,7 +47,6 @@ public class CommonSysConfig {
private String unionStagingPayOrgId;
private String unionStagingPayOrgMerCode;
private String unionStagingPayOrgTermNo;
private String unionStagingPaySignKey;
private String unionStagingPayNotifyUrl;
private String wx_cert;
@ -295,14 +294,6 @@ public class CommonSysConfig {
this.unionStagingPayOrgTermNo = unionStagingPayOrgTermNo;
}
public String getUnionStagingPaySignKey() {
return unionStagingPaySignKey;
}
public void setUnionStagingPaySignKey(String unionStagingPaySignKey) {
this.unionStagingPaySignKey = unionStagingPaySignKey;
}
public String getUnionStagingPayNotifyUrl() {
return unionStagingPayNotifyUrl;
}

@ -247,7 +247,7 @@ public class UnionStagingPayConfig {
*/
private static String generateSign(final Map<String, Object> data) throws IOException {
String paramSort = paramSort(data);
PrivateKey privateKey = PemUtil.loadPrivateKey(new FileInputStream("/home/project/wx_cert/BZ0001toORG000000000001.key"));
PrivateKey privateKey = PemUtil.loadPrivateKey(new FileInputStream("/home/project/wx_cert/BZ0002toORG000000000009.key"));
String signStr = null;
try {
Signature sign = Signature.getInstance("SHA256withRSA");

@ -34,12 +34,11 @@ unionPaySignKey=1dfk0i0fl7ild07l2k5oj8dddikkivd0
unionPayNotifyUrl=https://hsg.dctpay.com/crest/unionPay/notify
unionPayTelNotifyUrl=https://hsg.dctpay.com/crest/unionPay/notifyTel
unionStagingPayUrl=https://mtest.eycard.cn/
unionStagingPayOrgId=ORG000000000001
unionStagingPayOrgMerCode=890000000123679
unionStagingPayOrgTermNo=W0616228
unionStagingPaySignKey=1dfk0i0fl7ild07l2k5oj8dddikkivd0
unionStagingPayNotifyUrl=https://hsgcs.dctpay.com/crest/unionPay/stagingNotify
unionStagingPayUrl=https://cashier.eycard.cn:8663/
unionStagingPayOrgId=ORG000000000009
unionStagingPayOrgMerCode=531000009798708
unionStagingPayOrgTermNo=39666304
unionStagingPayNotifyUrl=https://hsg.dctpay.com/crest/unionPay/stagingNotify
wx_cert=/home/project/wx_cert/

@ -34,12 +34,11 @@ unionPaySignKey=1dfk0i0fl7ild07l2k5oj8dddikkivd0
unionPayNotifyUrl=https://hsg.dctpay.com/crest/unionPay/notify
unionPayTelNotifyUrl=https://hsg.dctpay.com/crest/unionPay/notifyTel
unionStagingPayUrl=https://mtest.eycard.cn/
unionStagingPayOrgId=ORG000000000001
unionStagingPayOrgMerCode=83169054816W999
unionStagingPayOrgTermNo=XS000104
unionStagingPaySignKey=1dfk0i0fl7ild07l2k5oj8dddikkivd0
unionStagingPayNotifyUrl=https://hsgcs.dctpay.com/crest/unionPay/stagingNotify
unionStagingPayUrl=https://cashier.eycard.cn:8663/
unionStagingPayOrgId=ORG000000000009
unionStagingPayOrgMerCode=531000009798708
unionStagingPayOrgTermNo=39666304
unionStagingPayNotifyUrl=https://hsg.dctpay.com/crest/unionPay/stagingNotify
wx_cert=/home/project/wx_cert/

Loading…
Cancel
Save