Sha256: 1805a48fd3ea359b5c6006317cbdf97b572c14b0047c0956fcb613e1e05e9d0a
Contents?: true
Size: 393 Bytes
Versions: 4
Compression:
Stored size: 393 Bytes
Contents
module Pay module Stripe module Webhooks class PaymentMethodUpdated def call(event) object = event.data.object user = Pay.user_model.find_by(processor: :stripe, processor_id: object.customer) # Couldn't find user, we can skip return unless user.present? user.sync_card_from_stripe end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems