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


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

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