"拉卡拉进件支付代码"

This commit is contained in:
hankaikai
2023-06-07 17:18:22 +08:00
parent 2f13c101cc
commit 53437eea3e
7 changed files with 315 additions and 98 deletions

View File

@@ -1690,10 +1690,12 @@ public class MerchantController {
String ua = request.getHeader("User-Agent");
log.info("===================>【银联】标识,获取请求头部信息:{},==============", ua);
int begin = ua.indexOf("UnionPay");
String payMentApp = ua.substring(begin);
if (payMentApp.length() > 30) {
payMentApp = payMentApp.substring(0, 30);
}
// String payMentApp = ua.substring(begin);
// if (payMentApp.length() > 30) {
// payMentApp = payMentApp.substring(0, 30);
// }
String payMentApp = null;
try {
Map<String, Object> unionInfo = null;
//随行付
@@ -1707,7 +1709,7 @@ public class MerchantController {
} else if (channel.getChannel() == 4) {
unionInfo = ysPayOldService.getUnionInfo(userAuthCode, payMentApp, null);
} else if (channel.getChannel() == 5) {
unionInfo = lkLPayService.getUnionInfo(userAuthCode, payMentApp, null);
unionInfo=lkLPayService.getUnionInfo(userAuthCode,payMentApp,channel.getMerchantCode());
} else {
view.addObject("error", "未知通道类型");
return view;

View File

@@ -1,5 +1,6 @@
package cn.pluss.platform.controller.home;
import cn.pluss.platform.klk.service.LkLPayServiceImpl;
import cn.pluss.platform.pay.PayService;
import cn.pluss.platform.ryx.pay.RyxPayService;
import cn.pluss.platform.sxf.pay.SxfPayService;
@@ -30,6 +31,10 @@ public class PayNotifyController {
@Setter(onMethod_ = {@Autowired, @Qualifier("ysPayService")})
private PayService ysPayService;
@Setter(onMethod_ = {@Autowired, @Qualifier("lkLPayService")})
private PayService lklPayService;
@Setter(onMethod_ = {@Autowired, @Lazy})
private SxfPayService sxfPayService;
@@ -58,4 +63,17 @@ public class PayNotifyController {
log.info("【瑞银信】异步回调开始,【瑞银信】回调参数:{}<=====================",JSONObject.toJSONString(params));
return (String) ryxPayService.payNotifyCallBack(params);
}
@RequestMapping(value = "/lklCallBack",method = RequestMethod.POST)
public String lklCallBack(@RequestBody Map<String,String> params) {
log.info("【拉卡拉】异步回调开始,【拉卡拉】回调参数:{}<=====================",JSONObject.toJSONString(params));
return String.valueOf(lklPayService.payNotifyCallBack(params));
}
}