Skip to content

微信支付使用公钥过度阶段验签失败 #3622

Closed
@Derick-L-HQ

Description

@Derick-L-HQ

简要描述

微信支付使用公钥验签,平滑过渡阶段,会出现验签失败

模块版本情况

  • WxJava 模块名: weixin-java-pay
  • WxJava 版本号: 4.7.0

详细描述

微信支付使用公钥验签,平滑过渡阶段,会出现验签失败, 新商户信息直接使用公钥没有问题,过度阶段存在这种现象,目前不兼容两种验签

日志

Caused by: org.apache.http.HttpException: 应答的微信支付签名验证失败
at com.github.binarywang.wxpay.v3.SignatureExec.executeWithSignature(SignatureExec.java:86) ~[weixin-java-pay-4.7.0.jar:?]
at com.github.binarywang.wxpay.v3.SignatureExec.execute(SignatureExec.java:60) ~[weixin-java-pay-4.7.0.jar:?]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.13.jar:4.5.13]
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.5.13.jar:4.5.13]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.13.jar:4.5.13]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.13.jar:4.5.13]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) ~[httpclient-4.5.13.jar:4.5.13]
at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.postV3(WxPayServiceApacheHttpImpl.java:102) ~[weixin-java-pay-4.7.0.jar:?]

日志请写于此处

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