场景: 平台模式兼容公钥模式
构建签名信息调整后可以进行支付和商户之间分账的绑定
问题 下单完成后签名构建成功 无法进行正常解密
RequestParam requestParam = new RequestParam.Builder()
.signType("WECHATPAY2-SHA256-RSA2048")
.serialNumber("xxxxx")
.nonce("xxxxx")
.signature("xxxxx")
.timestamp("xxx")
.body("{JSON}")
.build();
NotificationParser parser = new NotificationParser(weiXinConfig.getConfigs("xxx"));
Transaction transaction = parser.parse(requestParam, Transaction.class);
System.err.println(JSONObject.toJSONString(transaction));
解密需要使用商户号对应的密钥,辛苦检查下密钥是否正确
解密失败报错什么?