Method: Pay::Stripe::Webhooks::PaymentMethodAttached#call
- Defined in:
- lib/pay/stripe/webhooks/payment_method_attached.rb
#call(event) ⇒ Object
5 6 7 8 |
# File 'lib/pay/stripe/webhooks/payment_method_attached.rb', line 5 def call(event) object = event.data.object Pay::Stripe::PaymentMethod.sync(object.id, stripe_account: event.try(:account)) end |