mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-31 12:59:35 +08:00
增加 http配置的方式教程。
This commit is contained in:
@@ -87,7 +87,13 @@ public enum PayType implements BasePayType {
|
||||
wxPayConfigStorage.setMsgType(apyAccount.getMsgType());
|
||||
wxPayConfigStorage.setInputCharset(apyAccount.getInputCharset());
|
||||
wxPayConfigStorage.setTest(apyAccount.isTest());
|
||||
return new WxPayService(wxPayConfigStorage);
|
||||
//https证书设置 方式一
|
||||
HttpConfigStorage httpConfigStorage = new HttpConfigStorage();
|
||||
httpConfigStorage.setKeystore("证书信息串");
|
||||
httpConfigStorage.setStorePassword("证书密码");
|
||||
//是否为证书地址
|
||||
httpConfigStorage.setPath(false);
|
||||
return new WxPayService(wxPayConfigStorage, httpConfigStorage);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -67,9 +67,7 @@ public class PayResponse {
|
||||
// httpConfigStorage.setHttpProxyUsername("user");
|
||||
// //代理密码
|
||||
// httpConfigStorage.setHttpProxyPassword("password");
|
||||
|
||||
|
||||
//设置ssl证书路径
|
||||
//设置ssl证书路径 https证书设置 方式二
|
||||
httpConfigStorage.setKeystorePath(apyAccount.getKeystorePath());
|
||||
//设置ssl证书对应的密码
|
||||
httpConfigStorage.setStorePassword(apyAccount.getStorePassword());
|
||||
|
||||
Reference in New Issue
Block a user