|
|
|
@@ -279,7 +279,7 @@ public class WxMiniAppPayAdapterService extends BaseWxPayV2AdapterService implem |
|
|
|
|
|
|
|
public PayAdapterResult pay(String openId,String appId,String mchId,String productName,String attach,String payOrderNo,Integer fee,String ip,String notifyUrl,String apiKey,Date currentDate) throws Exception { |
|
|
|
WxPayOrderP wxPayOrderP = generateWxPayOrderP(openId, appId, mchId, productName, attach, payOrderNo, fee, ip, notifyUrl, apiKey, currentDate,null); |
|
|
|
String response = WxPay.pushOrder(BeanUtils.toStringMap(wxPayOrderP)); |
|
|
|
String response = WxPay.pushOrderWithChines(BeanUtils.toStringMap(wxPayOrderP)); |
|
|
|
log.info("pay order, wechat pushOrder, " + wxPayOrderP.toString() + ", response: " + response.toString()); |
|
|
|
Map<String, String> returnMap = WxPayment.xmlToMap(response); |
|
|
|
return getOrderPResult(returnMap,wxPayOrderP.getNonce_str(),apiKey,null); |
|
|
|
@@ -288,7 +288,7 @@ public class WxMiniAppPayAdapterService extends BaseWxPayV2AdapterService implem |
|
|
|
public PayAdapterResult payIsv(WxPayAccount payAccount,WxAppinfo appInfo,String subMchId,String openId,String productName,String attach,String payOrderNo,Integer fee,String ip,String notifyUrl,Date currentDate,boolean share) throws Exception { |
|
|
|
String apiKey = payAccount.getApiKey(); |
|
|
|
WxPayOrderSP wxPayOrderP = generateWxPayOrderSP(openId,appInfo.getParentAppId(),payAccount.getMchId(),appInfo.getAppId(),subMchId,productName,attach,payOrderNo,fee,ip,notifyUrl,null,currentDate,share,apiKey); |
|
|
|
String response = WxPay.pushOrder(BeanUtils.toStringMap(wxPayOrderP)); |
|
|
|
String response = WxPay.pushOrderWithChines(BeanUtils.toStringMap(wxPayOrderP)); |
|
|
|
log.info("pay order, wechat pushOrder, " + wxPayOrderP.toString() + ", response: " + response.toString()); |
|
|
|
Map<String, String> returnMap = WxPayment.xmlToMap(response); |
|
|
|
return getOrderSPResult(returnMap,null,appInfo.getAppId(),wxPayOrderP.getNonce_str(),apiKey); |
|
|
|
|