Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9k
微信支付付款码支付接口添加服务商模式支持#3686
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Draft
Copilot wants to merge2 commits intodevelopChoose a base branch fromcopilot/fix-3676
base:develop
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Draft
微信支付付款码支付接口添加服务商模式支持#3686
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
CopilotAI changed the title[WIP] 微信支付在服务商模式下使用codepay接口时,会报缺少sub_mch_id参数错误Add service provider mode support for WeChat Pay codepay interfaceAug 31, 2025
Owner
binarywang commentedNov 28, 2025
@copilot 请用中文改下描述文字,包括PR的标题 |
ContributorAuthor
已将PR描述更新为中文。关于PR标题,由于工具限制无法直接修改,需要您手动将标题改为:「微信支付付款码支付接口添加服务商模式支持」 |
CopilotAI changed the titleAdd service provider mode support for WeChat Pay codepay interface微信支付付款码支付接口添加服务商模式支持Nov 28, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading.Please reload this page.
当前
WxPayCodepayRequest类仅支持直连商户模式,缺少服务商模式支持,服务商模式需要sub_mch_id参数。在服务商模式下使用付款码支付接口时,用户会遇到以下错误:本PR所做的更改:
为
WxPayCodepayRequest添加服务商模式字段:sp_appid- 服务商应用IDsp_mchid- 服务商商户号sub_appid- 子商户应用IDsub_mchid- 子商户号(解决问题的关键字段)更新服务实现以支持两种模式:
sp_appid、sp_mchid或sub_mchid中的任意一个时,自动检测为服务商模式/v3/pay/partner/transactions/codepay/v3/pay/transactions/codepayWxPayConfig填充缺失的字段向后兼容性
本实现保持向后兼容性 - 现有的直连商户模式用法保持不变。服务商模式的使用示例:
修复#3676。
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn moreCopilot coding agent tips in the docs.