1
0
mirror of synced 2026-05-20 17:28:28 +08:00

🎨 #3976 【微信支付】v3接口默认走公钥模式,并统一携带 Wechatpay-Serial 请求头

This commit is contained in:
buaazyl
2026-05-07 13:43:20 +08:00
committed by GitHub
parent d27a9221c3
commit 56fd7bec1c
9 changed files with 29 additions and 29 deletions

View File

@@ -55,7 +55,7 @@ public class WxPayAutoConfiguration {
payConfig.setPrivateKeyPath(StringUtils.trimToNull(this.properties.getPrivateKeyPath()));
payConfig.setPrivateCertPath(StringUtils.trimToNull(this.properties.getPrivateCertPath()));
payConfig.setCertSerialNo(StringUtils.trimToNull(this.properties.getCertSerialNo()));
payConfig.setApiV3Key(StringUtils.trimToNull(this.properties.getApiv3Key()));
payConfig.setApiV3Key(StringUtils.trimToNull(this.properties.getApiV3Key()));
payConfig.setPublicKeyId(StringUtils.trimToNull(this.properties.getPublicKeyId()));
payConfig.setPublicKeyPath(StringUtils.trimToNull(this.properties.getPublicKeyPath()));
payConfig.setApiHostUrl(StringUtils.trimToNull(this.properties.getApiHostUrl()));

View File

@@ -59,7 +59,7 @@ public class WxPayProperties {
/**
* apiV3秘钥
*/
private String apiv3Key;
private String apiV3Key;
/**
* 微信支付分回调地址
@@ -114,13 +114,13 @@ public class WxPayProperties {
private String apiHostUrl;
/**
* 是否将全部v3接口的请求都添加Wechatpay-Serial请求头默认添加
* 是否将全部v3接口的请求都添加Wechatpay-Serial请求头默认添加
*/
private boolean strictlyNeedWechatPaySerial = false;
private boolean strictlyNeedWechatPaySerial = true;
/**
* 是否完全使用公钥模式(用以微信从平台证书到公钥的灰度切换),默认使用
* 是否完全使用公钥模式(用以微信从平台证书到公钥的灰度切换),默认使用
*/
private boolean fullPublicKeyModel = false;
private boolean fullPublicKeyModel = true;
}