public JsapiService getJsapiService() {
Config config = new RSAPublicKeyConfig.Builder()
.merchantId(merchantId)
.privateKeyFromPath(privateKeyUrl)
.publicKeyFromPath(publicKeyUrl)
.publicKeyId(publicKeyId)
.merchantSerialNumber(merchantSerialNumber)
.apiV3Key(apiV3Key)
.build();
config.createSigner().getAlgorithm();
return new JsapiService.Builder().config(config).build();
}
可以参考一下链接https://pay.weixin.qq.com/doc/v3/merchant/4012077203
平台收付通自带合单支付