Sha256: 3e254b6528e1be0a71f918b1aacceebecf852c468dbb06a8da05c4c43ab44da3

Contents?: true

Size: 272 Bytes

Versions: 40

Compression:

Stored size: 272 Bytes

Contents

module Pay
  module Stripe
    module Webhooks
      class PaymentMethodAttached
        def call(event)
          object = event.data.object
          Pay::Stripe::PaymentMethod.sync(object.id, stripe_account: event.try(:account))
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
pay-8.3.0 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-8.2.2 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-8.2.1 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-8.2.0 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-8.1.3 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-8.1.2 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-8.1.1 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-8.1.0 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-8.0.0 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-7.3.0 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-7.2.1 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-7.1.1 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-7.1.0 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-7.0.0 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-6.8.1 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-6.8.0 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-6.7.2 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-6.7.1 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-6.7.0 lib/pay/stripe/webhooks/payment_method_attached.rb
pay-6.6.1 lib/pay/stripe/webhooks/payment_method_attached.rb