mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-15 02:10:33 +08:00
帮助文档,新增证书设置方式教程
This commit is contained in:
@@ -75,6 +75,8 @@ public class WxPayController {
|
||||
|
||||
//ssl 退款证书相关 不使用可注释
|
||||
if(!"ssl 退款证书".equals(KEYSTORE)){
|
||||
//TODO 这里也支持输入流的入参。
|
||||
// httpConfigStorage.setKeystore(WxPayController.class.getResourceAsStream("/证书文件"));
|
||||
httpConfigStorage.setKeystore(KEYSTORE);
|
||||
httpConfigStorage.setStorePassword(STORE_PASSWORD);
|
||||
httpConfigStorage.setPath(true);
|
||||
|
||||
@@ -96,8 +96,11 @@ public enum PayType implements BasePayType {
|
||||
wxPayConfigStorage.setMsgType(apyAccount.getMsgType());
|
||||
wxPayConfigStorage.setInputCharset(apyAccount.getInputCharset());
|
||||
wxPayConfigStorage.setTest(apyAccount.isTest());
|
||||
|
||||
//https证书设置 方式一
|
||||
/* HttpConfigStorage httpConfigStorage = new HttpConfigStorage();
|
||||
//TODO 这里也支持输入流的入参。
|
||||
// httpConfigStorage.setKeystore(PayType.class.getResourceAsStream("/证书文件"));
|
||||
httpConfigStorage.setKeystore("证书信息串");
|
||||
httpConfigStorage.setStorePassword("证书密码");
|
||||
//是否为证书地址
|
||||
|
||||
Reference in New Issue
Block a user