|
|
@@ -545,19 +545,19 @@ public class OrderController {
|
|
|
/**
|
|
|
* paypal支付
|
|
|
*/
|
|
|
- @PostMapping("/paypal/pay/{orderId}")
|
|
|
- public Result<String> paypalPay(@PathVariable Long orderId,String successUrl) throws Exception {
|
|
|
+ @PostMapping("/paypal/pay/{mOid}")
|
|
|
+ public Result<String> paypalPay(@PathVariable Long mOid,String successUrl) throws Exception {
|
|
|
final String methodName = "paypal支付";
|
|
|
- log.info("{}[start] orderId:{}",methodName,orderId);
|
|
|
+ log.info("{}[start] orderId:{}",methodName,mOid);
|
|
|
|
|
|
- Payment payment = payPalService.createPayment(orderId,successUrl);
|
|
|
+ Payment payment = payPalService.createPayment(mOid,successUrl);
|
|
|
String payUrl = "/";
|
|
|
log.info("paypal links:{}",payment.getLinks());
|
|
|
for(Links links : payment.getLinks()){
|
|
|
if("approval_url".equals(links.getRel())){
|
|
|
// 客户付款登陆地址
|
|
|
String payPalUrl = links.getHref();
|
|
|
- log.info("PayPal调起支付成功[end]:{}", orderId);
|
|
|
+ log.info("PayPal调起支付成功[end]:{}", mOid);
|
|
|
payUrl = payPalUrl;
|
|
|
}
|
|
|
}
|
|
|
@@ -571,11 +571,11 @@ public class OrderController {
|
|
|
/**
|
|
|
* stripe支付
|
|
|
*/
|
|
|
- @PostMapping("/stripe/pay/{orderId}")
|
|
|
- public Result<String> stripePay(@PathVariable Long orderId,String successUrl) throws Exception {
|
|
|
+ @PostMapping("/stripe/pay/{mOid}")
|
|
|
+ public Result<String> stripePay(@PathVariable Long mOid,String successUrl) throws Exception {
|
|
|
final String methodName = "stripe支付";
|
|
|
- log.info("{}[start] orderId:{}",methodName,orderId);
|
|
|
- String payUrl = stripeService.checkOutStripe(orderId,successUrl);
|
|
|
+ log.info("{}[start] orderId:{}",methodName,mOid);
|
|
|
+ String payUrl = stripeService.checkOutStripe(mOid,successUrl);
|
|
|
|
|
|
log.info("Stripe支付成功 result:{}[end]",payUrl);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(payUrl);
|