Class: Pay::Stripe::Webhooks::PaymentMethodUpdated
- Inherits:
-
Object
- Object
- Pay::Stripe::Webhooks::PaymentMethodUpdated
- Defined in:
- lib/pay/stripe/webhooks/payment_method_updated.rb
Instance Method Summary collapse
Instance Method Details
#call(event) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/pay/stripe/webhooks/payment_method_updated.rb', line 5 def call(event) object = event.data.object billable = Pay.find_billable(processor: :stripe, processor_id: object.customer) # Couldn't find user, we can skip return unless billable.present? billable.sync_card_from_stripe end |