From b731154e681fee248b5611c7ecfdcd720fd64bba Mon Sep 17 00:00:00 2001 From: egan Date: Wed, 18 Aug 2021 23:03:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=9B=9E=E8=B0=83=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=AF=B9=E8=B1=A1=EF=BC=8C=E5=9B=9E=E8=B0=83=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/egzosn/pay/demo/controller/WxV3PayController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pay-java-demo/src/main/java/com/egzosn/pay/demo/controller/WxV3PayController.java b/pay-java-demo/src/main/java/com/egzosn/pay/demo/controller/WxV3PayController.java index 080ea19..4d65fc2 100644 --- a/pay-java-demo/src/main/java/com/egzosn/pay/demo/controller/WxV3PayController.java +++ b/pay-java-demo/src/main/java/com/egzosn/pay/demo/controller/WxV3PayController.java @@ -60,12 +60,14 @@ public class WxV3PayController { wxPayConfigStorage.setAppId("wxc7b993ff15a9f271"); wxPayConfigStorage.setMchId("1602947765"); // wxPayConfigStorage.setKeyPublic("转账公钥,转账时必填"); - wxPayConfigStorage.setSecretKey("9bd8f0e7af4841299d782406b7774f52"); + //V3密钥 https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay3_2.shtml + wxPayConfigStorage.setSecretKey("V3密钥"); wxPayConfigStorage.setNotifyUrl("https://pay.egzosn.com/payback"); wxPayConfigStorage.setReturnUrl("https://pay.egzosn.com/payback"); wxPayConfigStorage.setInputCharset("utf-8"); wxPayConfigStorage.setCertSign(true); - wxPayConfigStorage.setApiClientKeyP12("yifenli_mall.p12"); + //商户API证书 https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay3_1.shtml + wxPayConfigStorage.setApiClientKeyP12("商户API证书.p12"); wxPayConfigStorage.setCertStoreType(CertStoreType.PATH); service = new WxPayService(wxPayConfigStorage); //设置回调消息处理