-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
微信支付成功后,异步通知 NotificationParser.parse 解密数据异常 #112
Comments
body要使用原始的报文,而不是 |
这样子也是验签不通过 |
能给一个获取原始body的例子么? |
有的极少订单回调会报这个解签错误,大部分订单可以成功,这个是body读取的代码示例,不清楚为什么会这样,微信sdk版本是0.2.7 |
感谢大佬们先踩坑了,让咱吃了现成的了 |
我猜你要找的是‘签名探测流量’,https://pay.weixin.qq.com/docs/merchant/development/interface-rules/signature-verification.html |
`package com.github.modules.miniapp.service.impl; import com.alibaba.fastjson.JSON; import javax.servlet.http.HttpServletRequest; /**
} `package com.github.config.wx; import com.wechat.pay.java.core.Config; import javax.annotation.Resource; /**
// Config config = new RSAAutoCertificateConfig.Builder() `package com.github.common.utils; import javax.servlet.ServletInputStream; /**
} 已解决 |
亲测完整教程:微信支付|SpringBoot集成微信小程序创建订单&支付&退款(apiV3+SDK保姆级教程) |
我甚至先怀疑了一下jdk自带的base64有问题,都没怀疑微信回调的有问题。建议把签名探测 放在回调文档那一页,并突出展示。 |
错误描述
微信支付成功,异步通知解密数据异常
运行环境
java:JDK17
依赖微信sdk:wechatpay-java;0.2.4版本
示例代码
异常信息:
重现bug的步骤
预期行为
正常解析密文
导致错误的代码片段
操作系统
win10
Java 版本
java 17
wechatpay-java 版本
0.2.4
其他信息
无
The text was updated successfully, but these errors were encountered: