質問編集履歴
1
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,11 +80,11 @@
|
|
80
80
|
customer = Stripe::Customer.create({
|
81
81
|
source: params[:stripeToken],
|
82
82
|
})
|
83
|
-
@team.plan_
|
83
|
+
@team.plan_type = params[:plan_type]
|
84
|
-
if @team.plan_
|
84
|
+
if @team.plan_type == 1
|
85
|
-
@team.plan_id = "price_"
|
85
|
+
@team.plan_id = "price_************************"
|
86
|
-
els
|
86
|
+
elsif @team.plan_type == 2
|
87
|
-
@team.plan_id = "price_"
|
87
|
+
@team.plan_id = "price_*************************"
|
88
88
|
end
|
89
89
|
subscription = Stripe::Subscription.create({
|
90
90
|
customer: customer.id,
|