Implement WeChat deposit payment functionality (微信押金支付功能) #3720
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.
Adds comprehensive support for WeChat deposit payment API, addressing the frequently requested deposit payment functionality for scenarios like bike sharing, equipment rentals, and other services requiring security deposits.
What's Added
This implementation provides a complete deposit payment solution following the existing WxJava architecture patterns:
New Service Layer:
WxDepositService
interface with 5 core operationsWxDepositServiceImpl
implementation following existing service patternsWxPayService
viagetWxDepositService()
methodComplete API Coverage:
Request/Result Models:
@Builder
,@XStreamAlias
, and proper inheritanceUsage Example
Technical Details
API Endpoints Mapped:
/pay/depositpay
- Deposit order creation/pay/depositorderquery
- Order status query/pay/depositconsume
- Deposit consumption/pay/depositreverse
- Deposit unfreeze/cancel/pay/depositrefund
- Deposit refund (requires certificate)Quality Assurance:
This implementation enables developers to easily integrate WeChat's deposit payment system into their applications using the familiar WxJava API patterns, supporting common use cases like shared mobility, equipment rentals, and service deposits.
Fixes #[issue_number] - 微信押金支付功能
Fixes #3352
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.