js支付
This commit is contained in:
parent
1ee84896a4
commit
15d6664ef1
|
|
@ -30,6 +30,12 @@ public class CzgJsPayReq extends CzgBaseReq {
|
|||
* 需要传付款用户客户端IP地址
|
||||
*/
|
||||
private String clientIp;
|
||||
/**
|
||||
* 微信 WECHAT;
|
||||
* 支付宝 ALIPAY;
|
||||
* 银联云闪付 UNIONPAY
|
||||
*/
|
||||
private String payType;
|
||||
|
||||
|
||||
//非必填范围
|
||||
|
|
|
|||
|
|
@ -688,6 +688,7 @@ public class PayServiceImpl implements PayService {
|
|||
AssertUtil.isBlank(bizData.getSubAppid(), "暂不可用,请联系商家配置" + ("aliPay".equals(payType) ? "支付宝" : "微信") + "小程序");
|
||||
bizData.assignMerchant(shopMerchant.getStoreId(), shopMerchant.getMerchantName(),
|
||||
sysParamsService.getSysParamValue(SysParamCodeEnum.PAY_CZG_NOTIFY_URL.getCode()));
|
||||
bizData.setPayType("aliPay".equals(payType) ? "ALIPAY" : "WECHAT");
|
||||
CzgResult<CzgJsPayResp> jsPayRespCzgResult = czgPayService.jsPay(shopMerchant.getAppId(), shopMerchant.getAppSecret(), bizData);
|
||||
return execPayResult(jsPayRespCzgResult);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue