Sha256: b615253a301e1c8c4ed5b0724d34e6f6be7c1420c8e67fa0f316c7676ca0e228
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
module StripeEvent class WebhookController < ActionController::Base before_filter do if StripeEvent.authentication_secret authenticate_or_request_with_http_basic do |username, password| password == StripeEvent.authentication_secret end end end def event StripeEvent.instrument(params) head :ok rescue StripeEvent::UnauthorizedError head :unauthorized end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stripe_event-1.5.0 | app/controllers/stripe_event/webhook_controller.rb |