🎨 #3976 【微信支付】v3接口默认走公钥模式,并统一携带 Wechatpay-Serial 请求头
This commit is contained in:
@@ -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()));
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user