Commit e187c590 authored by cbwleft's avatar cbwleft
Browse files

解决微信APP支付与文档上字段名称不一致的问题

parent 00076fd1
...@@ -97,12 +97,12 @@ public class PayChannel4WxServiceImpl extends BaseService implements IPayChannel ...@@ -97,12 +97,12 @@ public class PayChannel4WxServiceImpl extends BaseService implements IPayChannel
configMap.put("appid", appId); configMap.put("appid", appId);
// 此map用于客户端与微信服务器交互 // 此map用于客户端与微信服务器交互
payInfo.put("sign", SignUtils.createSign(configMap, wxPayConfig.getMchKey(), null)); payInfo.put("sign", SignUtils.createSign(configMap, wxPayConfig.getMchKey(), null));
payInfo.put("prepayId", wxPayUnifiedOrderResult.getPrepayId()); payInfo.put("prepayid", wxPayUnifiedOrderResult.getPrepayId());
payInfo.put("partnerId", partnerId); payInfo.put("partnerid", partnerId);
payInfo.put("appId", appId); payInfo.put("appid", appId);
payInfo.put("packageValue", packageValue); payInfo.put("package", packageValue);
payInfo.put("timeStamp", timestamp); payInfo.put("timestamp", timestamp);
payInfo.put("nonceStr", nonceStr); payInfo.put("noncestr", nonceStr);
map.put("payParams", payInfo); map.put("payParams", payInfo);
break; break;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment