Skip to content
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

🐛 修复微信支付V3签名/验签的换行符错误 #2246

Merged
merged 1 commit into from
Aug 13, 2021

Conversation

gadfly3173
Copy link

@gadfly3173 gadfly3173 commented Aug 9, 2021

参考微信支付文档:
https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_4.shtml
https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay4_0.shtml

image
image

签名时使用的换行符必须是\n,因此不应使用%n,这会导致windows平台下签名错误

参考微信支付文档:
https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_4.shtml
https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay4_0.shtml

签名时使用的换行符必须是\n,因此不应使用%n,这会导致windows平台下签名错误
@binarywang binarywang merged commit 60c9df4 into Wechat-Group:develop Aug 13, 2021
@binarywang binarywang added this to the 4.1.6 milestone Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants