| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,13 +46,20 @@ public WxPayService wxPayService() { | |||
| 46 | 46 | payConfig.setSubMchId(StringUtils.trimToNull(this.properties.getSubMchId())); | |
| 47 | 47 | payConfig.setKeyPath(StringUtils.trimToNull(this.properties.getKeyPath())); | |
| 48 | 48 | payConfig.setUseSandboxEnv(this.properties.isUseSandboxEnv()); | |
| 49 | + payConfig.setNotifyUrl(StringUtils.trimToNull(this.properties.getNotifyUrl())); | ||
| 49 | 50 | //以下是apiv3以及支付分相关 | |
| 50 | 51 | payConfig.setServiceId(StringUtils.trimToNull(this.properties.getServiceId())); | |
| 51 | 52 | payConfig.setPayScoreNotifyUrl(StringUtils.trimToNull(this.properties.getPayScoreNotifyUrl())); | |
| 53 | + payConfig.setPayScorePermissionNotifyUrl(StringUtils.trimToNull(this.properties.getPayScorePermissionNotifyUrl())); | ||
| 52 | 54 | payConfig.setPrivateKeyPath(StringUtils.trimToNull(this.properties.getPrivateKeyPath())); | |
| 53 | 55 | payConfig.setPrivateCertPath(StringUtils.trimToNull(this.properties.getPrivateCertPath())); | |
| 54 | 56 | payConfig.setCertSerialNo(StringUtils.trimToNull(this.properties.getCertSerialNo())); | |
| 55 | 57 | payConfig.setApiV3Key(StringUtils.trimToNull(this.properties.getApiv3Key())); | |
| 58 | + payConfig.setPublicKeyId(StringUtils.trimToNull(this.properties.getPublicKeyId())); | ||
| 59 | + payConfig.setPublicKeyPath(StringUtils.trimToNull(this.properties.getPublicKeyPath())); | ||
| 60 | + payConfig.setApiHostUrl(StringUtils.trimToNull(this.properties.getApiHostUrl())); | ||
| 61 | + payConfig.setStrictlyNeedWechatPaySerial(this.properties.isStrictlyNeedWechatPaySerial()); | ||
| 62 | + payConfig.setFullPublicKeyModel(this.properties.isFullPublicKeyModel()); | ||
| 56 | 63 | ||
| 57 | 64 | wxPayService.setConfig(payConfig); | |
| 58 | 65 | return wxPayService; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -82,4 +82,40 @@ public class WxPayProperties { | |||
| 82 | 82 | */ | |
| 83 | 83 | private boolean useSandboxEnv; | |
| 84 | 84 | ||
| 85 | + /** | ||
| 86 | + * 微信支付异步回调地址,通知url必须为直接可访问的url,不能携带参数 | ||
| 87 | + */ | ||
| 88 | + private String notifyUrl; | ||
| 89 | + | ||
| 90 | + /** | ||
| 91 | + * 微信支付分授权回调地址 | ||
| 92 | + */ | ||
| 93 | + private String payScorePermissionNotifyUrl; | ||
| 94 | + | ||
| 95 | + /** | ||
| 96 | + * 公钥ID | ||
| 97 | + */ | ||
| 98 | + private String publicKeyId; | ||
| 99 | + | ||
| 100 | + /** | ||
| 101 | + * pub_key.pem证书文件的绝对路径或者以classpath:开头的类路径. | ||
| 102 | + */ | ||
| 103 | + private String publicKeyPath; | ||
| 104 | + | ||
| 105 | + /** | ||
| 106 | + * 自定义API主机地址,用于替换默认的 https://api.mch.weixin.qq.com | ||
| 107 | + * 例如:http://proxy.company.com:8080 | ||
| 108 | + */ | ||
| 109 | + private String apiHostUrl; | ||
| 110 | + | ||
| 111 | + /** | ||
| 112 | + * 是否将全部v3接口的请求都添加Wechatpay-Serial请求头,默认不添加 | ||
| 113 | + */ | ||
| 114 | + private boolean strictlyNeedWechatPaySerial = false; | ||
| 115 | + | ||
| 116 | + /** | ||
| 117 | + * 是否完全使用公钥模式(用以微信从平台证书到公钥的灰度切换),默认不使用 | ||
| 118 | + */ | ||
| 119 | + private boolean fullPublicKeyModel = false; | ||
| 120 | + | ||
| 85 | 121 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,6 +62,8 @@ public WxPayService wxPayService() { | |||
| 62 | 62 | payConfig.setPublicKeyId(StringUtils.trimToNull(this.properties.getPublicKeyId())); | |
| 63 | 63 | payConfig.setPublicKeyPath(StringUtils.trimToNull(this.properties.getPublicKeyPath())); | |
| 64 | 64 | payConfig.setApiHostUrl(StringUtils.trimToNull(this.properties.getApiHostUrl())); | |
| 65 | + payConfig.setStrictlyNeedWechatPaySerial(this.properties.isStrictlyNeedWechatPaySerial()); | ||
| 66 | + payConfig.setFullPublicKeyModel(this.properties.isFullPublicKeyModel()); | ||
| 65 | 67 | ||
| 66 | 68 | wxPayService.setConfig(payConfig); | |
| 67 | 69 | return wxPayService; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,4 +106,14 @@ public class WxPayProperties { | |||
| 106 | 106 | */ | |
| 107 | 107 | private String apiHostUrl; | |
| 108 | 108 | ||
| 109 | + /** | ||
| 110 | + * 是否将全部v3接口的请求都添加Wechatpay-Serial请求头,默认不添加 | ||
| 111 | + */ | ||
| 112 | + private boolean strictlyNeedWechatPaySerial = false; | ||
| 113 | + | ||
| 114 | + /** | ||
| 115 | + * 是否完全使用公钥模式(用以微信从平台证书到公钥的灰度切换),默认不使用 | ||
| 116 | + */ | ||
| 117 | + private boolean fullPublicKeyModel = false; | ||
| 118 | + | ||
| 109 | 119 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments