Sha256: 69d0a733a639929d80967b8cf82e55c89119a886840599d7ab9195e0595aca91

Contents?: true

Size: 221 Bytes

Versions: 5

Compression:

Stored size: 221 Bytes

Contents

module StripeEvent
  class WebhookController < ActionController::Base
    def event
      StripeEvent.instrument(params)
      head :ok
    rescue StripeEvent::UnauthorizedError
      head :unauthorized
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stripe_event-1.4.0 app/controllers/stripe_event/webhook_controller.rb
stripe_event-1.3.0 app/controllers/stripe_event/webhook_controller.rb
stripe_event-1.2.0 app/controllers/stripe_event/webhook_controller.rb
stripe_event-1.1.0 app/controllers/stripe_event/webhook_controller.rb
stripe_event-1.0.0 app/controllers/stripe_event/webhook_controller.rb