在方法外添加如下代码 private Config config; private NativePayService service; 方法内: if (config == null){ config = new RSAAutoCertificateConfig.Builder() .merchantId(mchid) .privateKey(privateKey) .merchantSerialNumber(merchantSerialNumber) .apiV3Key(apiV3key) .build(); } // 构建service if (service == null){ service = new NativePayService.Builder().config(config).build(); }
签名时报The corresponding provider for the merchant al这是什么意思,完整错误 java.lang.IllegalStateException: The corresponding provider for the merchant already exists.
2023-07-03在方法外添加如下代码 private Config config; private NativePayService service; 方法内: if (config == null){ config = new RSAAutoCertificateConfig.Builder() .merchantId(mchid) .privateKey(privateKey) .merchantSerialNumber(merchantSerialNumber) .apiV3Key(apiV3key) .build(); } // 构建service if (service == null){ service = new NativePayService.Builder().config(config).build(); }
自动获取微信平台证书错误该如何解决?微信小程序请求后台调用JSAPI下单,用的是自动获取微信平台证书 [图片],请求成功微信小程序端调用wx.requestPayment,发起微信支付,第一次支付成功,再重新执行一遍这一套操作,后台就报错:java.lang.IllegalStateException: The corresponding provider for the merchant already exists. 大致是第一次获取微信平台证书成功,第二次就报了java.lang.IllegalStateException: The corresponding provider for the merchant already exists.[图片] 在这里抛出的异常
2023-07-03在方法外添加如下代码 private Config config; private NativePayService service; 方法内: if (config == null){ config = new RSAAutoCertificateConfig.Builder() .merchantId(mchid) .privateKey(privateKey) .merchantSerialNumber(merchantSerialNumber) .apiV3Key(apiV3key) .build(); } // 构建service if (service == null){ service = new NativePayService.Builder().config(config).build(); }
微信支付查询订单接口初始化config报商户已存在?java.lang.IllegalStateException: The corresponding provider for the merchant already exists. [图片]
2023-07-03