Class: Pay::Stripe::Webhooks::SubscriptionUpdated
- Inherits:
-
Object
- Object
- Pay::Stripe::Webhooks::SubscriptionUpdated
- Defined in:
- lib/pay/stripe/webhooks/subscription_updated.rb
Instance Method Summary collapse
Instance Method Details
#call(event) ⇒ Object
5 6 7 |
# File 'lib/pay/stripe/webhooks/subscription_updated.rb', line 5 def call(event) Pay::Stripe::Subscription.sync(event.data.object.id, stripe_account: event.try(:account)) end |