Skip to content

Conversation

@buaazyl
Copy link
Contributor

@buaazyl buaazyl commented Jan 8, 2026

No description provided.

@augmentcode
Copy link

augmentcode bot commented Jan 8, 2026

🤖 Augment PR Summary

Summary: This PR adds support for configuring a dedicated refund-result callback URL for WxPay starters.

Changes:

  • Adds refundNotifyUrl to WxPayConfig and both Spring Boot/Solon WxPayProperties
  • Wires refundNotifyUrl into auto-configuration so it is applied to the created WxPayService
  • Defaults V2/V3 refund requests to use refundNotifyUrl when request-level notifyUrl is blank
  • Updates the root README to clarify HttpClient 4/5 module defaults/support

Technical Notes: Request-level notifyUrl still takes precedence; when refundNotifyUrl isn’t set, existing behavior is preserved.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Copy link

Copilot AI left a 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 客户端文档(与主题无关)

binarywang and others added 2 commits January 9, 2026 13:23
…ig/WxPayConfig.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@binarywang
Copy link
Owner

auggie review

Copy link

@augmentcode augmentcode bot left a 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.

@binarywang binarywang merged commit 72fa3b3 into binarywang:develop Jan 9, 2026
@buaazyl buaazyl deleted the 优化支付starter branch January 9, 2026 06:33
@binarywang binarywang added this to the 4.8.1 milestone Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants