Class: Webhookdb::Jobs::CreateStripeCustomer
- Inherits:
-
Object
- Object
- Webhookdb::Jobs::CreateStripeCustomer
- Extended by:
- Async::Job
- Defined in:
- lib/webhookdb/jobs/create_stripe_customer.rb
Instance Method Summary collapse
Methods included from Async::Job
Instance Method Details
#_perform(event) ⇒ Object
12 13 14 15 16 |
# File 'lib/webhookdb/jobs/create_stripe_customer.rb', line 12 def _perform(event) org = self.lookup_model(Webhookdb::Organization, event) return if Webhookdb::Subscription.billing_disabled? org.register_in_stripe end |