收藏
回答

调用退款接口报错:Server returned HTTP response code: 400 ?

(注:本地postman测试是成功的,但是放到外网服务器就报这个错误)

SDK版本:

 <dependency>

            <groupId>com.github.wxpay</groupId>

            <artifactId>wxpay-sdk</artifactId>

            <version>0.0.3</version>

     </dependency>

错误日志:

java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.mch.weixin.qq.com/secapi/pay/refund

at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)

at com.github.wxpay.sdk.WXPay.requestWithCert(WXPay.java:208)

at com.github.wxpay.sdk.WXPay.refund(WXPay.java:485)

at com.github.wxpay.sdk.WXPay.refund(WXPay.java:463)

回答关注问题邀请回答
收藏

1 个回答

  • Herry
    Herry
    2024-11-21

    有没有解决?

    2024-11-21
    有用
    回复
登录 后发表内容
问题标签