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

小程序支付签名错误 #215

Open
Invests opened this issue May 14, 2020 · 2 comments
Open

小程序支付签名错误 #215

Invests opened this issue May 14, 2020 · 2 comments

Comments

@Invests
Copy link

Invests commented May 14, 2020

#206

确实有这个问题,小程序发起支付的时候需要再重新加密一个paySign,如果直接使用sign是会报签名错误。
https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&index=6

@ScientistPun
Copy link

请教一下,该如何加密?

@yinlianwei
Copy link

yinlianwei commented Apr 21, 2021

#206

确实有这个问题,小程序发起支付的时候需要再重新加密一个paySign,如果直接使用sign是会报签名错误。
https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&index=6

作者本身签名没有问题,重新按官方的签一下,亲测可用,只是小程序要求把签名的timestamp也作为参数,本SDK没有暴露出来。

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

No branches or pull requests

3 participants