integrallis / stripe_event

Stripe webhook integration for Rails applications.
https://rubygems.org/gems/stripe_event
MIT License
844 stars 104 forks source link

undefined method `account' for #<Stripe::Event> #116

Closed fjsLovepop closed 6 years ago

fjsLovepop commented 6 years ago

Am attempting to create an app with multiple Stripe account support. Using the example in the README:

class EventFilter def call(event) event.api_key = lookup_api_key(event.account) event end

always results in this error: NoMethodError (undefined method `account' for #

Is multi-account support for webhooks currently supported?

fjsLovepop commented 6 years ago

Delving deeper I see this config requires connected accounts in Stripe. When that config is there, events will have the needed 'account' attribute. Closing this issue ... thanks.