Sha256: e62b9bae0fd923fac1ce4b29e9c7e164f474505a72475adc853cd55eb00bd986
Contents?: true
Size: 427 Bytes
Versions: 14
Compression:
Stored size: 427 Bytes
Contents
module Pay module Stripe module Webhooks class PaymentMethodUpdated 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? Pay::Stripe::Billable.new(billable).sync_card_from_stripe end end end end end
Version data entries
14 entries across 13 versions & 1 rubygems