tansengming / stripe-rails

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

undefined method `subscriptions' for #<Stripe::Customer:0x00007fc0945c3ad0> #196

Open andreirafaelbrayer opened 3 years ago

andreirafaelbrayer commented 3 years ago

Hi, I am facing the following error, undefined method subscriptions for Stripe::Customer

I've tested with all versions of the stripe-rails gem and in all of them the error continues, do you know why this happens?

I'm using rails 5.2.3 and ruby 2.6.3

tansengming commented 3 years ago

Hi @andreirafaelbrayer unless I am missing something, Stripe::Customer is defined here so you might want to look into the stripe-ruby gem instead. This gem, the stripe-rails gem builds on top of the stripe-ruby gem to make it easier to integrate with Rails.