mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-02-18 06:06:23 +08:00
🆕 #1667 微信支付增加电商收付通-二级商户进件相关接口
电商收付通二级商户进件 Co-authored-by: 曾浩 <epdcgsi@dingtalk.com>
This commit is contained in:
@@ -130,6 +130,12 @@ public class WxPayConfig {
|
||||
* 私钥信息
|
||||
*/
|
||||
private PrivateKey privateKey;
|
||||
|
||||
/**
|
||||
* 证书自动更新时间差(分钟),默认一分钟
|
||||
*/
|
||||
private int certAutoUpdateTime = 60;
|
||||
|
||||
/**
|
||||
* p12证书文件内容的字节数组.
|
||||
*/
|
||||
@@ -245,8 +251,7 @@ public class WxPayConfig {
|
||||
|
||||
AutoUpdateCertificatesVerifier verifier = new AutoUpdateCertificatesVerifier(
|
||||
new WxPayCredentials(mchId, new PrivateKeySigner(certSerialNo, merchantPrivateKey)),
|
||||
apiV3Key.getBytes(StandardCharsets.UTF_8));
|
||||
|
||||
apiV3Key.getBytes(StandardCharsets.UTF_8), this.getCertAutoUpdateTime());
|
||||
|
||||
CloseableHttpClient httpClient = WxPayV3HttpClientBuilder.create()
|
||||
.withMerchant(mchId, certSerialNo, merchantPrivateKey)
|
||||
|
||||
Reference in New Issue
Block a user