This commit is contained in:
wangw 2025-03-08 13:53:43 +08:00
parent 1ee84896a4
commit 15d6664ef1
2 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,12 @@ public class CzgJsPayReq extends CzgBaseReq {
* 需要传付款用户客户端IP地址
*/
private String clientIp;
/**
* 微信 WECHAT
* 支付宝 ALIPAY
* 银联云闪付 UNIONPAY
*/
private String payType;
//非必填范围

View File

@ -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);
}