This commit is contained in:
鲨鱼
2024-12-21 16:43:59 +08:00
parent fc144afd3e
commit 71de3b10ea

View File

@@ -357,4 +357,24 @@ public class PayController {
} }
} }
@PostMapping(value = "/trd/notify/v4")
@Operation(hidden = true)
@Log(title = "第三方支付回调V4", businessType = BusinessType.OTHER, isSaveDb = false)
@SaIgnore
public String trdNotifyUrlV4(HttpServletRequest request) {
try {
Map<String, String> params = AliPayApi.toMap(request);
log.info("第三方支付回调V4:{}",JSON.toJSONString(params));
NotifyResp notifyResp = trdPayManager.getNotifyResp(params, TrdPayTypeEnum.V4);
payManager.callBack(notifyResp.getOrderNo(),notifyResp.getTrdOrderNo(),params,notifyResp.getPayTypeEnum().name(), PayTypeEnum.TRD);
return "success";
} catch (Exception e) {
log.error("第三方支付回调失败V4!",e);
return "failure";
}
}
} }