|
@@ -59,7 +59,8 @@ public class StripeService {
|
|
|
throw BusinessRuntimeException.getInstance("订单异常..");
|
|
throw BusinessRuntimeException.getInstance("订单异常..");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- BigDecimal money = orderDon.getMoney();
|
|
|
|
|
|
|
+ BigDecimal money = orderDon.getMoney().divide(new BigDecimal(7),2,RoundingMode.HALF_DOWN);
|
|
|
|
|
+ orderDon.setAbroadMoney(money);
|
|
|
orderDon.setType(OrderDon.Type.STRIPE);
|
|
orderDon.setType(OrderDon.Type.STRIPE);
|
|
|
orderDonService.updateById(orderDon);
|
|
orderDonService.updateById(orderDon);
|
|
|
HashMap<String, String> responseData = new HashMap<String, String>();
|
|
HashMap<String, String> responseData = new HashMap<String, String>();
|
|
@@ -150,7 +151,8 @@ public class StripeService {
|
|
|
}
|
|
}
|
|
|
public String checkOutStripeVip(Long orderId,String successUrl) throws Exception{
|
|
public String checkOutStripeVip(Long orderId,String successUrl) throws Exception{
|
|
|
VipOrderDon orderDon = vipOrderDonService.getById(orderId);
|
|
VipOrderDon orderDon = vipOrderDonService.getById(orderId);
|
|
|
- BigDecimal money = orderDon.getMoney();
|
|
|
|
|
|
|
+ BigDecimal money = orderDon.getMoney().divide(new BigDecimal(7),2,RoundingMode.HALF_DOWN);
|
|
|
|
|
+ orderDon.setAbroadMoney(money);
|
|
|
orderDon.setType(VipOrderDon.Type.STRIPE);
|
|
orderDon.setType(VipOrderDon.Type.STRIPE);
|
|
|
vipOrderDonService.updateById(orderDon);
|
|
vipOrderDonService.updateById(orderDon);
|
|
|
HashMap<String, String> responseData = new HashMap<String, String>();
|
|
HashMap<String, String> responseData = new HashMap<String, String>();
|