支付宝支付结果校验

This commit is contained in:
Chopper 2022-01-20 11:01:24 +08:00
parent 8e1ade5423
commit 4fb170e5c7

View File

@ -293,7 +293,10 @@ public class AliPayPlugin implements Payment {
log.info("支付回调响应:{}", JSONUtil.toJsonStr(map));
boolean verifyResult = AlipaySignature.rsaCertCheckV1(map, alipayPaymentSetting.getAlipayPublicCertPath(), "UTF-8",
"RSA2");
//支付完成
if (!"TRADE_FINISHED".equals(map.get("trade_status"))) {
return;
}
String payParamStr = map.get("passback_params");
String payParamJson = URLDecoder.decode(payParamStr, StandardCharsets.UTF_8);
PayParam payParam = BeanUtil.formatKeyValuePair(payParamJson, new PayParam());