質問編集履歴

1

変更

2024/11/05 16:04

投稿

student
student

スコア83

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_number = plan_number
83
+ @team.plan_type = params[:plan_type]
84
- if @team.plan_number = 1
84
+ if @team.plan_type == 1
85
- @team.plan_id = "price_"
85
+ @team.plan_id = "price_************************"
86
- else @team.plan_number = 2
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,