Closed denys-medynskyi closed 2 years ago
I want to add a new plan in Customer portal via config/stripe/plans.rb
Customer portal
config/stripe/plans.rb
I don't see new plan added
config/stripe/products.rb
rake stripe:prepare
Stripe::BillingPortal::Session
I should see 'Game Streaming' plan in the UI
No plan is available for selection
### config/stripe/products.rb Stripe.product :game_streaming do |product| product.name = 'Game Streaming' product.type = 'service' end
### config/stripe/plans.rb Stripe.plan :standard do |plan| plan.product_id = 'game_streaming' plan.amount = 599 plan.interval = 'month' end
What am I doing wrong?
Hi @deny7ko did you see any error messages when you ran rake stripe:prepare? Does the plan show up on the stripe dashboard?
@tansengming sorry missed to respond to you 😬 It was resolved
What
I want to add a new plan in
Customer portal
viaconfig/stripe/plans.rb
Problem
I don't see new plan added
Steps
config/stripe/products.rb
config/stripe/plans.rb
rake stripe:prepare
Stripe::BillingPortal::Session
setup and working properlyExpected Result
I should see 'Game Streaming' plan in the UI
Actual Result
No plan is available for selection
Code
Question
What am I doing wrong?
rake stripe:prepare