Class: SpreeStripe::CreateWebhookEndpointJob

Inherits:
BaseJob
  • Object
show all
Defined in:
app/jobs/spree_stripe/create_webhook_endpoint_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(payment_method_id) ⇒ Object



3
4
5
# File 'app/jobs/spree_stripe/create_webhook_endpoint_job.rb', line 3

def perform(payment_method_id)
  Spree::PaymentMethod.find(payment_method_id).create_webhook_endpoint
end