123
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user