| | |
| | | .body(body) |
| | | .build(); |
| | | |
| | | NotificationConfig config = new RSAAutoCertificateConfig.Builder() |
| | | NotificationConfig config = /*new RSAAutoCertificateConfig.Builder() |
| | | .merchantId(WxMiniConfig.wxProperties.getMchId()) |
| | | .privateKeyFromPath(WxMiniConfig.wxProperties.getPrivateKeyPath()) |
| | | .merchantSerialNumber(WxMiniConfig.wxProperties.getSerialNumer()) |
| | | .apiV3Key(WxMiniConfig.wxProperties.getApiV3Key()) |
| | | .build(); */ |
| | | new RSAPublicKeyConfig.Builder() |
| | | .merchantId(WxMiniConfig.wxProperties.getMchId()) |
| | | .privateKeyFromPath(WxMiniConfig.wxProperties.getPrivateKeyPath()) |
| | | .publicKeyFromPath(WxMiniConfig.wxProperties.getPubKeyPath()) |
| | | .publicKeyId(WxMiniConfig.wxProperties.getPayPublicKeyId()) |
| | | .merchantSerialNumber(WxMiniConfig.wxProperties.getSerialNumer()) |
| | | .apiV3Key(WxMiniConfig.wxProperties.getApiV3Key()) |
| | | .build(); |
| | |
| | | .body(body) |
| | | .build(); |
| | | |
| | | NotificationConfig config = new RSAAutoCertificateConfig.Builder() |
| | | NotificationConfig config = /*new RSAAutoCertificateConfig.Builder() |
| | | .merchantId(WxMiniConfig.wxProperties.getMchId()) |
| | | .privateKeyFromPath(WxMiniConfig.wxProperties.getPrivateKeyPath()) |
| | | .merchantSerialNumber(WxMiniConfig.wxProperties.getSerialNumer()) |
| | | .apiV3Key(WxMiniConfig.wxProperties.getApiV3Key()) |
| | | .build();*/ |
| | | new RSAPublicKeyConfig.Builder() |
| | | .merchantId(WxMiniConfig.wxProperties.getMchId()) |
| | | .privateKeyFromPath(WxMiniConfig.wxProperties.getPrivateKeyPath()) |
| | | .publicKeyFromPath(WxMiniConfig.wxProperties.getPubKeyPath()) |
| | | .publicKeyId(WxMiniConfig.wxProperties.getPayPublicKeyId()) |
| | | .merchantSerialNumber(WxMiniConfig.wxProperties.getSerialNumer()) |
| | | .apiV3Key(WxMiniConfig.wxProperties.getApiV3Key()) |
| | | .build(); |
| | | |
| | | |
| | | NotificationParser parser = new NotificationParser(config); |
| | | RefundNotification result = parser.parse(requestParam, RefundNotification.class); |
| | |
| | | .publicKeyFromPath(WxMiniConfig.wxProperties.getWechatPubKeyPath()) //微信支付公钥的存放路径 |
| | | .publicKeyId(WxMiniConfig.wxProperties.getWechatPayPublicKeyId()) //微信支付公钥ID |
| | | .merchantSerialNumber(WxMiniConfig.wxProperties.getWechatSerialNumer()) //商户API证书序列号 |
| | | .apiV3Key("7tG4Vk9Zp2L8dXw5Jq0N3hR6yE1sF3cB") //APIv3密钥 |
| | | .apiV3Key(WxMiniConfig.wxProperties.getWechatApiV3Key()) //APIv3密钥 |
| | | .build(); |
| | | |
| | | TransferDetailEntityNew entity = wxSuccessCallback(request,config); |