Sha256: 76a5ef70b1e68f829f66b33bee1d6960717370880dcaadc368455dceb9bc102b

Contents?: true

Size: 426 Bytes

Versions: 9

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module ShopifyApp
  class MissingWebhookJobError < StandardError; end

  class WebhooksController < ActionController::Base
    include ShopifyApp::WebhookVerification

    def receive
      params.permit!

      ShopifyAPI::Webhooks::Registry.process(
        ShopifyAPI::Webhooks::Request.new(raw_body: request.raw_post, headers: request.headers.to_h)
      )
      head(:ok)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shopify_app-20.1.1 app/controllers/shopify_app/webhooks_controller.rb
shopify_app-20.1.0 app/controllers/shopify_app/webhooks_controller.rb
shopify_app-20.0.2 app/controllers/shopify_app/webhooks_controller.rb
shopify_app-20.0.1 app/controllers/shopify_app/webhooks_controller.rb
shopify_app-20.0.0 app/controllers/shopify_app/webhooks_controller.rb
shopify_app-19.1.0 app/controllers/shopify_app/webhooks_controller.rb
shopify_app-19.0.2 app/controllers/shopify_app/webhooks_controller.rb
shopify_app-19.0.1 app/controllers/shopify_app/webhooks_controller.rb
shopify_app-19.0.0 app/controllers/shopify_app/webhooks_controller.rb