tansengming / stripe-rails

A Rails Engine for integrating with Stripe
MIT License
753 stars 123 forks source link

Plan is not visible in the Customer Portal after sync #210

Closed denys-medynskyi closed 2 years ago

denys-medynskyi commented 3 years ago

What

I want to add a new plan in Customer portal via config/stripe/plans.rb

Problem

I don't see new plan added

Steps

Expected Result

I should see 'Game Streaming' plan in the UI

Actual Result

No plan is available for selection

Screenshot 2021-07-10 at 13 00 09

Code

### 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

Question

What am I doing wrong?

rake stripe:prepare

tansengming commented 3 years ago

Hi @deny7ko did you see any error messages when you ran rake stripe:prepare? Does the plan show up on the stripe dashboard?

denys-medynskyi commented 2 years ago

@tansengming sorry missed to respond to you 😬 It was resolved