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

微信支付签名校验失败 #3223

Open
applealpha opened this issue Jan 21, 2024 · 3 comments
Open

微信支付签名校验失败 #3223

applealpha opened this issue Jan 21, 2024 · 3 comments
Labels

Comments

@applealpha
Copy link

applealpha commented Jan 21, 2024

简要描述

微信官方文档 -> 平台能力 -> 行业能力 -> 虚拟支付
支付签名校验失败

模块版本情况

  • WxJava 模块名: weixin-java-miniapp
  • WxJava 版本号: 4.6.0

详细描述

appKey、appid、env、secret都配置正确了,微信端依然报错支付签名校验失败
image

日志

YXbz0f14L0

@applealpha
Copy link
Author

applealpha commented Jan 21, 2024

问题原因:
虚拟支付的接口中,添加的支付签名必须全部小写,但是现有的WxMaXPaySigParams内部生成的支付签名是大写的
image

解决方案:
重写一下WxMaXPaySigParams.calcPaySig(String url, String postBody)
image

@binarywang
Copy link
Member

欢迎直接提交 PR,测试没问题的话

Copy link

stale bot commented May 16, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants