返回错误[{"code":"SIGN_ERROR","message":"商户证书序列号有误。请使用签名私钥匹配的证书序列号"}]
代码中的merchantSerialNumber参数到底是什么?看了挺多文档的证书序列号分商户证书序列号和平台序列号
这里指的是什么?
平台证书序列号如何获取?
RSAConfig config =
new RSAConfig.Builder()
.merchantId(MCH_ID)
.privateKeyFromPath(privateKeyPath)
.merchantSerialNumber("")
.wechatPayCertificatesFromPath(wechatPayCertificatePath)
.build();

https://pay.weixin.qq.com/wiki/doc/apiv3/apis/wechatpay5_1.shtml