|
@@ -76,10 +76,12 @@ public class StripeService {
|
|
String productName = StringUtils.isBlank(param.getProductName()) ? "product" :param.getProductName();
|
|
String productName = StringUtils.isBlank(param.getProductName()) ? "product" :param.getProductName();
|
|
String productId = stripeProductService.getByName(productName);
|
|
String productId = stripeProductService.getByName(productName);
|
|
if(StringUtils.isBlank(productId)){
|
|
if(StringUtils.isBlank(productId)){
|
|
|
|
+ log.info("创建stripe支付失败--productId{}",productId);
|
|
throw new BusinessException(ResultCode.STRIPE_ERROR);
|
|
throw new BusinessException(ResultCode.STRIPE_ERROR);
|
|
}
|
|
}
|
|
String priceId = stripePriceService.getByParam(param.getOrderMoney(),stripeConfig.getCurrency(),productId,param.getAutoPay(),param.getAutoPayTime());
|
|
String priceId = stripePriceService.getByParam(param.getOrderMoney(),stripeConfig.getCurrency(),productId,param.getAutoPay(),param.getAutoPayTime());
|
|
if(StringUtils.isBlank(priceId)){
|
|
if(StringUtils.isBlank(priceId)){
|
|
|
|
+ log.info("创建stripe支付失败--priceId{}",productId);
|
|
throw new BusinessException(ResultCode.STRIPE_ERROR);
|
|
throw new BusinessException(ResultCode.STRIPE_ERROR);
|
|
}
|
|
}
|
|
|
|
|