Skip to content

发起商家转账API设置公钥后,部分请求失败,提示“应答的微信支付签名验证失败” #3602

@tcsp

Description

@tcsp

简要描述

使用4.7.4.B版本进行v3的支付请求,商户号后台已经开启公钥转换,部分请求报错“应答的微信支付签名验证失败”

模块版本情况

  • WxJava 模块名: weixin-java-pay
  • WxJava 版本号: 4.7.4.B

详细描述

WxPayConfig中已经设置了publicKeyId和publicKeyPath,目前部分请求可以成功,但是部分请求失败。

日志

org.apache.http.HttpException: 应答的微信支付签名验证失败
    at com.github.binarywang.wxpay.v3.SignatureExec.executeWithSignature(SignatureExec.java:86)
    at com.github.binarywang.wxpay.v3.SignatureExec.execute(SignatureExec.java:60)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute$original$CXZdG3oL(InternalHttpClient.java:185)
    at org.apache.http.impl.client.InternalHttpClient.doExecute$original$CXZdG3oL$accessor$QqM84g9U(InternalHttpClient.java)
    at org.apache.http.impl.client.InternalHttpClient$auxiliary$zhNVrxxa.call
    at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:86)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
    at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.postV3WithWechatpaySerial(WxPayServiceApacheHttpImpl.java:179)
    at com.github.binarywang.wxpay.service.impl.TransferServiceImpl.transferBatches(TransferServiceImpl.java:36)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions