RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.
http://railsapps.github.io/rails-stripe-membership-saas
1.14k stars 231 forks source link

Issue with roles changing to correct membership #170

Closed RailsCod3rFuture closed 6 years ago

RailsCod3rFuture commented 7 years ago

The stripe_id is identical to the role within the enum. But, when I check the role in the console. I get

@user.gold? false

When I check the user directly for their role. I get

@user.role "user"

Mind you, the user.stripe_plan_id is set Rails Console >> subscription_plan_id: 5

How do you set the enum roles up to match the stripe id correctly?