Class: ShopifyApp::WebhooksController

Inherits:
ActionController::Base
  • Object
show all
Includes:
WebhookVerification
Defined in:
app/controllers/shopify_app/webhooks_controller.rb

Instance Method Summary collapse

Instance Method Details

#receiveObject


8
9
10
11
12
13
# File 'app/controllers/shopify_app/webhooks_controller.rb', line 8

def receive
  params.permit!
  job_args = { shop_domain: shop_domain, webhook: webhook_params.to_h }
  webhook_job_klass.perform_later(job_args)
  head(:ok)
end