Explorar el Código

#936 修复微信支付沙箱环境退款接口的请求地址

master
Binary Wang hace 6 años
padre
commit
2887c1e47e
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java

+ 4
- 0
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java Ver fichero

@@ -141,6 +141,10 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
request.checkAndSign(this.getConfig());

String url = this.getPayBaseUrl() + "/secapi/pay/refund";
if (this.getConfig().isUseSandboxEnv()) {
url = PAY_BASE_URL + "/sandboxnew/pay/refund";
}

String responseContent = this.post(url, request.toXML(), true);
WxPayRefundResult result = WxPayRefundResult.fromXML(responseContent);
result.checkResult(this, request.getSignType(), true);


Cargando…
Cancelar
Guardar