支付宝支付结果校验
This commit is contained in:
parent
8e1ade5423
commit
4fb170e5c7
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user