Closed estebanbouza closed 5 years ago
Looks like I forgot to release the new feature so the Readme was ahead of the gem! I just pushed a new release so this should work now:
Stripe.plan "Silver-Plan".to_sym do |plan|
plan.constant_name = 'SILVER_PLAN'
plan.name = 'ACME Silver'
plan.amount = 699 # $6.99
plan.interval = 'month'
end
Trying this gem now, but I'm getting the error below. Initially I thought this could be a name collision as I have a
Plan
model in my application, however I have renamed both the model file and the DB table toLegacyPlan
and I get the following:config/stripe/plans.rb
:When running
rails console
: