使用wechatpay-apiv3接口,httpClient.execute无法识别
public class HttpClient {
String merchantId="xx";
String merchantSerialNumber="xx";
String merchantPrivateKey="xx";
String wechatpayCertificates="xx";
WechatPayHttpClientBuilder builder = WechatPayHttpClientBuilder.create()
.withMerchant(merchantId, merchantSerialNumber, merchantPrivateKey)
.withWechatpay(wechatpayCertificates);
HttpClient httpClient = builder.build();
HttpPost httpPost = new HttpPost("https://api.mch.weixin.qq.com/v3/apply4subject/applyment");
HttpResponse response = httpClient.execute(httpPost);
获取微信支付平台证书时失败
懒的弄了,我直接用了第三方的包,IJPay-WxPay调用它的WxPayApi.v3Execution(.....)然后自己改造下,就用了,微信官方的优点麻烦
你好,你这边指的是运行失败?商户号、密钥、证书信息是否有正确配置上去?https://wechatpay-api.gitbook.io/wechatpay-api-v3/jie-kou-wen-dang/ping-tai-zheng-shu