🎨 #3838 【微信支付】为starter添加了退款结果回调 URL 的配置支持,允许开发者在配置文件中统一配置退款通知地址

This commit is contained in:
buaazyl
2026-01-09 14:16:06 +08:00
committed by GitHub
parent 2c5a33917e
commit 72fa3b3301
8 changed files with 32 additions and 9 deletions

View File

@@ -47,6 +47,7 @@ public class WxPayAutoConfiguration {
payConfig.setKeyPath(StringUtils.trimToNull(this.properties.getKeyPath()));
payConfig.setUseSandboxEnv(this.properties.isUseSandboxEnv());
payConfig.setNotifyUrl(StringUtils.trimToNull(this.properties.getNotifyUrl()));
payConfig.setRefundNotifyUrl(StringUtils.trimToNull(this.properties.getRefundNotifyUrl()));
//以下是apiv3以及支付分相关
payConfig.setServiceId(StringUtils.trimToNull(this.properties.getServiceId()));
payConfig.setPayScoreNotifyUrl(StringUtils.trimToNull(this.properties.getPayScoreNotifyUrl()));

View File

@@ -87,6 +87,11 @@ public class WxPayProperties {
*/
private String notifyUrl;
/**
* 退款结果异步回调地址通知url必须为直接可访问的url不能携带参数.
*/
private String refundNotifyUrl;
/**
* 微信支付分授权回调地址
*/