|
@@ -109,8 +109,12 @@ public class PayPalService{
|
|
|
|
|
|
|
|
|
|
|
|
|
public Payment createPayment(Long orderId,String successUrl) throws PayPalRESTException {
|
|
public Payment createPayment(Long orderId,String successUrl) throws PayPalRESTException {
|
|
|
- redisService.set(RedisService.key.ABROAD_SUCCESS_URL.getName() + orderId,successUrl,RedisService.key.ABROAD_SUCCESS_URL.getTimeout());
|
|
|
|
|
OrderDon orderDon = orderDonService.getById(orderId);
|
|
OrderDon orderDon = orderDonService.getById(orderId);
|
|
|
|
|
+ //paypal 不能购买奈飞月付账号 24-1-23
|
|
|
|
|
+ if (orderDon.getSkuId() != null && orderDon.getSkuId() == 4) {
|
|
|
|
|
+ throw BusinessRuntimeException.getInstance("暂不支持paypal购买该规格车票..");
|
|
|
|
|
+ }
|
|
|
|
|
+ redisService.set(RedisService.key.ABROAD_SUCCESS_URL.getName() + orderId,successUrl,RedisService.key.ABROAD_SUCCESS_URL.getTimeout());
|
|
|
BigDecimal money = orderDon.getMoney().divide(new BigDecimal(7),2,RoundingMode.HALF_DOWN);
|
|
BigDecimal money = orderDon.getMoney().divide(new BigDecimal(7),2,RoundingMode.HALF_DOWN);
|
|
|
orderDon.setAbroadMoney(money);
|
|
orderDon.setAbroadMoney(money);
|
|
|
orderDon.setType(OrderDon.Type.PAYPAL);
|
|
orderDon.setType(OrderDon.Type.PAYPAL);
|