-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
网站同时使用了公众号和小程序jsapi支付,签名却固定用配置文件TenPayV3_AppId用于appId,导致只能支持一种支付 #2809
Comments
PR已提交 #2810 请苏老师指导审核 @JeffreySu |
…ySign_InputParam Feature/#2809 change create pay sign input param
@JaneConan 已经回复了,为了避免程序里面硬编码appId,我们已经提供了支持多账套的方案,你可以参考一下。 |
首先先确认一个情况,微信支付是否存在创建订单的appId跟签名时appId不一致还可以成功支付的情况,如果不存在这种情况,那既然传了参数appId,签名就直接使用appId,而不要使用TenPayV3_AppId,否则就是多此一举,给用户增加使用难度和排查bug难度 |
1、appId 和你后续支付的令牌、OpenId等肯定是有关联的,所以不能混用。 |
appId也是从配置文件里面读取的,那为什么还要用到TenPayV3_AppId,而且他们的值本身就必须一致。还有我并没有混用。 |
支付签名里面用的appId就是微信公众号和小程序的appId,而不是微信支付本身的appId,微信支付自己是没有appId的。 |
配置文件TenPayV3_AppId在公众号和小程序的jsapi支付上,根本是可以不要用的 |
问题描述
网站同时使用了公众号和小程序jsapi支付,签名却固定用配置文件TenPayV3_AppId用于appId,导致只能支持一种支付
重现问题步骤(如果可以)
var jsApiUiPackage = TenPaySignHelper.GetJsApiUiPackage(appId, result.prepay_id);
微信官方文档 URL
微信官方文档快照(直接复制关键内容到下方)
发现问题的模块
- [ ] Senparc.Weixin.QY 版本:模块对应的 .net 版本
开发环境
缓存环境
系统环境
联系方式
Email:
(也可将问题地址及联系方式发送到 www.jeffrey.su@gmail.com)
The text was updated successfully, but these errors were encountered: