|
@@ -74,10 +74,14 @@ public class OrderRefundServiceImpl implements OrderRefundService {
|
|
|
return zfbRefund(refundReq, orderDon);
|
|
return zfbRefund(refundReq, orderDon);
|
|
|
}
|
|
}
|
|
|
if (type == OrderDon.Type.PAYPAL && !refundType.equals(OrderDon.Type.BALANCE.getType())) {
|
|
if (type == OrderDon.Type.PAYPAL && !refundType.equals(OrderDon.Type.BALANCE.getType())) {
|
|
|
- paypalRefund(refundReq, orderDon);
|
|
|
|
|
|
|
+ if (!paypalRefund(refundReq, orderDon)) {
|
|
|
|
|
+ throw BusinessRuntimeException.getInstance("paypal退款失败");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
if (type == OrderDon.Type.STRIPE && !refundType.equals(OrderDon.Type.BALANCE.getType())) {
|
|
if (type == OrderDon.Type.STRIPE && !refundType.equals(OrderDon.Type.BALANCE.getType())) {
|
|
|
- stripeRefund(refundReq, orderDon);
|
|
|
|
|
|
|
+ if (!stripeRefund(refundReq, orderDon)) {
|
|
|
|
|
+ throw BusinessRuntimeException.getInstance("stripe退款失败");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
return StrUtil.EMPTY;
|
|
return StrUtil.EMPTY;
|
|
|
}
|
|
}
|