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

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

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

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

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,测试没问题的话

@stale stale bot added the stale label May 16, 2024
@binarywang binarywang added this to the 4.6.3 milestone May 22, 2024
@stale stale bot removed the stale label May 22, 2024
@Wechat-Group Wechat-Group deleted a comment from stale bot May 22, 2024
@binarywang binarywang modified the milestones: 4.6.3, 4.6.4 Jul 15, 2024
@binarywang
Copy link
Member

@kevinzhwl 有空的话可以看一眼

Molzx added a commit to Molzx/WxJava that referenced this issue Sep 4, 2024
…develop

* 'develop' of github.com:Wechat-Group/WxJava:
  🆕 Wechat-Group#3217 增加 solon-plugins 适配
  🔖 发布 4.6.4.B 测试版本
  🆕 【微信支付】新增 平台收付通(补差)的3个接口方法
  🆕【微信支付】增加商家转账到零钱结果回调的解析方法
  🐛【微信支付】修复商家转账到零钱-查询批次单needQueryDetail为false时非必传参数为null的问题
  🎨 Wechat-Group#3345  【小程序】获取手机号 getPhoneNoInfo方法兼容旧版本
  🐛 Wechat-Group#3348 【公共问题】修复无法获取正确文件名的问题
  🎨 优化代码,规范注释
  🐛 Wechat-Group#3223 【小程序】修复微信虚拟支付签名校验失败的问题
Molzx added a commit to Molzx/WxJava that referenced this issue Sep 4, 2024
* source-develop:
  🆕 Wechat-Group#3217 增加 solon-plugins 适配
  🔖 发布 4.6.4.B 测试版本
  🆕 【微信支付】新增 平台收付通(补差)的3个接口方法
  🆕【微信支付】增加商家转账到零钱结果回调的解析方法
  🐛【微信支付】修复商家转账到零钱-查询批次单needQueryDetail为false时非必传参数为null的问题
  🎨 Wechat-Group#3345  【小程序】获取手机号 getPhoneNoInfo方法兼容旧版本
  🐛 Wechat-Group#3348 【公共问题】修复无法获取正确文件名的问题
  🎨 优化代码,规范注释
  🐛 Wechat-Group#3223 【小程序】修复微信虚拟支付签名校验失败的问题
  🎨 完善部分代码注释,修复 yaml 未自动提示 hosts 配置问题
  🆕 Wechat-Group#3347 【开放平台】新增小程序备案相关接口
  🎨 Wechat-Group#3343 【小程序】媒资管理新增字段status以支持审核状态展示
  🎨 Wechat-Group#3333 【企业微信】设置应用在用户工作台展示的webview型数据时,支持enable_webview_click参数设置
  🆕  Wechat-Group#3340【微信支付】增加直连商户付款码支付和撤销支付订单的V3版接口实现
  🆕 Wechat-Group#3339 【企业微信】增加上传临时素材的重载方法
  🎨 Wechat-Group#3337 【视频号小店】 订单详情字段补充、售后新特性补充
  🎨 Bump org.bouncycastle:bcpkix-jdk18on & bcprov-jdk18on from 1.78 to 1.78.1
  🔖 发布 4.6.3.B 测试版本
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

2 participants