Class: Pay::Stripe::Webhooks::CheckoutSessionCompleted
- Inherits:
-
Object
- Object
- Pay::Stripe::Webhooks::CheckoutSessionCompleted
- Defined in:
- lib/pay/stripe/webhooks/checkout_session_completed.rb
Instance Method Summary collapse
Instance Method Details
#call(event) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/pay/stripe/webhooks/checkout_session_completed.rb', line 5 def call(event) # TODO: Also handle payment intents if event.data.object.subscription Pay::Stripe::Subscription.sync(event.data.object.subscription, stripe_account: event.try(:account)) end end |