-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Implement Business Operations Merchant Transfer API (Document 4012711988) #3689
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
Draft
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
...988) Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
@Copilot
Copilot
AI
changed the title
(削除) [WIP] 运营工具-商家转账Api (削除ここまで)
(追記) Implement Business Operations Merchant Transfer API (Document 4012711988) (追記ここまで)
Aug 31, 2025
Copilot finished work on behalf of
binarywang
August 31, 2025 15:08
Sign up for free
to 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.
This PR implements the missing "运营工具-商家转账API" (Business Operations - Merchant Transfer API) referenced in WeChat Pay document 4012711988. The issue reported that this API was not available in WxJava despite being documented by WeChat Pay.
What's Added
New Service Interface
BusinessOperationTransferService
- Complete service interface for business operations transfer functionalityBusinessOperationTransferServiceImpl
- Full implementation with proper RSA encryption handlingAPI Endpoints Implemented
POST /v3/fund-app/operation/mch-transfer/transfer-bills
- Create operation transferGET /v3/fund-app/operation/mch-transfer/transfer-bills/out-bill-no/{out_bill_no}
- Query by merchant bill numberGET /v3/fund-app/operation/mch-transfer/transfer-bills/transfer-bill-no/{transfer_bill_no}
- Query by WeChat transfer bill numberBean Classes
BusinessOperationTransferRequest
- Request parameters with automatic RSA encryption for user namesBusinessOperationTransferResult
- Transfer creation responseBusinessOperationTransferQueryRequest
- Query request parametersBusinessOperationTransferQueryResult
- Query response with full transfer detailsConstants & Configuration
WxPayConstants.OperationSceneId
with predefined operation scene IDs (2001, 2002, 2003)UserRecvPerception
constants for business operations contextWxPayService
andBaseWxPayServiceImpl
Documentation & Examples
BusinessOperationTransferExample
- Comprehensive usage examples showing all API operationsBusinessOperationTransferServiceTest
- Complete unit test coverageKey Features
✅ Automatic RSA Encryption - User names are automatically encrypted using RSA with OAEP padding
✅ Operation Scene Support - Built-in support for business operation scenarios (cash marketing, commission, promotion)
✅ User Receipt Perception - Configurable user-facing transfer descriptions
✅ Error Handling - Proper exception handling with meaningful error messages
✅ WeChat Pay v3 Compliance - Follows all v3 API standards and conventions
Usage Example
This implementation provides merchants with the complete business operations transfer functionality that was missing from WxJava, enabling them to use WeChat Pay's operation tools for daily business activities.
Fixes #3507.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
pay.weixin.qq.com
curl -s REDACTED
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.