|
|
@@ -474,7 +474,14 @@ public class PaypalService {
|
|
|
String planId = restApiPaypalService.createPlan(paypalConfig, plan);
|
|
|
log.info("创建订阅计划:"+planId);
|
|
|
|
|
|
- autopayPlan = new AutopayPlan(order,productId,planId);
|
|
|
+ autopayPlan = new AutopayPlan();
|
|
|
+ autopayPlan.setServeId(order.getServeId());
|
|
|
+ autopayPlan.setAutoPayTime(order.getAutoPayTime());
|
|
|
+ autopayPlan.setOrderType(order.getOrderType());
|
|
|
+ autopayPlan.setPayType(order.getPayType());
|
|
|
+ autopayPlan.setOrderMoney(order.getOrderMoney());
|
|
|
+ autopayPlan.setProductId(productId);
|
|
|
+ autopayOrder.setPlanId(planId);
|
|
|
autopayPlanService.save(autopayPlan);
|
|
|
}
|
|
|
|