Class: Pay::Lago::Webhooks::CustomerPaymentProviderCreated

Inherits:
Object
  • Object
show all
Defined in:
lib/pay/lago/webhooks/customer_payment_provider_created.rb

Instance Method Summary collapse

Instance Method Details

#call(event) ⇒ Object



5
6
7
8
# File 'lib/pay/lago/webhooks/customer_payment_provider_created.rb', line 5

def call(event)
  customer = event.customer
  PaymentMethod.sync(customer)
end