Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

微信商户转账新增免确认收款授权模式支持#3717

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

Open
Copilot wants to merge3 commits intodevelop
base:develop
Choose a base branch
Loading
fromcopilot/fix-7d6863c2-75f7-4666-87ef-1dc7e17b4471

Conversation

Copy link
Contributor

CopilotAI commentedSep 24, 2025
edited
Loading

变更内容

实现了微信商户转账的"免确认收款授权模式"功能,解决了issue中关于高频转账场景下用户体验优化的需求。

核心实现

TransferBillsRequest 中新增了receiptAuthorizationMode 字段,支持两种模式:

  • CONFIRM_RECEIPT_AUTHORIZATION(默认):需确认收款授权模式,用户需手动确认才能收款
  • NO_CONFIRM_RECEIPT_AUTHORIZATION:免确认收款授权模式,用户事先授权后转账直接到账
// 使用免确认授权模式提升用户体验TransferBillsRequestrequest =TransferBillsRequest.newBuilder()    .appid("wx1234567890123456")    .outBillNo("TRANSFER_001")    .transferSceneId("1005")    .openid("user_openid")    .transferAmount(200)    .receiptAuthorizationMode(WxPayConstants.ReceiptAuthorizationMode.NO_CONFIRM_RECEIPT_AUTHORIZATION)    .build();

类型安全 & 常量定义

新增WxPayConstants.ReceiptAuthorizationMode 常量类,提供编译时类型检查,防止无效的授权模式值。

文档 & 示例增强

  • 更新NewTransferApiExample.java,添加了完整的使用示例
  • 增加了授权失败的错误处理模式
  • 完善了API文档,详细说明了两种模式的对比
  • 更新了转账API使用指南

功能优势

适用高频场景:消除佣金发放、奖励、返现等场景中的用户确认步骤,显著提升转化率和用户体验。

完全兼容:现有代码无需修改即可继续运行,新字段为可选字段,默认使用传统的需确认模式。

生产就绪:所有变更已通过编译验证、代码风格检查和测试。

API参考

该功能遵循微信官方API规范,文档地址:https://pay.weixin.qq.com/doc/v3/merchant/4014399293

Fixes#3716

Fixes#3716


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Clickhere to start the survey.

CopilotAIand others added2 commitsSeptember 24, 2025 13:54
…mode supportCo-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
CopilotAI changed the title[WIP] 微信商户转账新增了免确认收款授权模式Add support for WeChat merchant transfer confirmation-free receipt authorization modeSep 24, 2025
@binarywangbinarywang added this to the4.7.9 milestoneSep 24, 2025
@binarywangbinarywang marked this pull request as ready for reviewSeptember 25, 2025 08:20
@binarywangbinarywang modified the milestones:4.7.9,4.8.0Nov 27, 2025
@binarywang
Copy link
Owner

@copilot 请用中文改下描述文字

Copy link
ContributorAuthor

@copilot 请用中文改下描述文字

已将PR描述改为中文。

CopilotAI changed the titleAdd support for WeChat merchant transfer confirmation-free receipt authorization mode微信商户转账新增免确认收款授权模式支持Nov 28, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@binarywangbinarywangAwaiting requested review from binarywang

Labels

None yet

Projects

None yet

Milestone

4.8.0

Development

Successfully merging this pull request may close these issues.

微信商户转账新增了免确认收款授权模式

2 participants

@binarywang

[8]ページ先頭

©2009-2025 Movatter.jp