-
-
Notifications
You must be signed in to change notification settings - Fork 9k
微信支付starter支持配置退款结果回调URL #3838
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
微信支付starter支持配置退款结果回调URL #3838
The head ref may contain hidden characters: "\u4F18\u5316\u652F\u4ED8starter"
Conversation
miniapp默认使用HttpClient 5.x
🤖 Augment PR SummarySummary: This PR adds support for configuring a dedicated refund-result callback URL for WxPay starters. Changes:
Technical Notes: Request-level 🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...in-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
Show resolved
Hide resolved
...arter/src/main/java/com/binarywang/spring/starter/wxjava/pay/properties/WxPayProperties.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
本 PR 为微信支付 starter 添加了退款结果回调 URL 的配置支持,允许开发者在配置文件中统一配置退款通知地址,而不需要在每次调用退款接口时手动设置。
主要变更包括:
- 在核心配置和请求对象中添加了
refundNotifyUrl字段 - 在退款方法中实现了自动填充逻辑:当请求中未设置时,自动使用配置的 URL
- Spring Boot starter 支持通过配置属性设置退款回调 URL
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java | 添加 refundNotifyUrl 配置字段 |
| weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java | 在 refundV3 和 partnerRefundV3 方法中实现自动填充退款回调 URL |
| weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayRefundRequest.java | 在 V2 退款请求的 checkAndSign 方法中自动填充退款回调 URL |
| spring-boot-starters/wx-java-pay-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/pay/properties/WxPayProperties.java | 添加 refundNotifyUrl 配置属性 |
| spring-boot-starters/wx-java-pay-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/pay/config/WxPayAutoConfiguration.java | 将 refundNotifyUrl 属性映射到 WxPayConfig |
| README.md | 更新 HTTP 客户端文档(与主题无关) |
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/com/binarywang/spring/starter/wxjava/pay/config/WxPayAutoConfiguration.java
Show resolved
Hide resolved
…ig/WxPayConfig.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
auggie review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review completed. No suggestions at this time.
Comment augment review to trigger a new review at any time.
No description provided.