Class: StripeLocal::WebhooksController

Inherits:
ApplicationController show all
Defined in:
app/controllers/stripe_local/webhooks_controller.rb

Instance Method Summary collapse

Instance Method Details

#eventsObject



3
4
5
6
7
8
9
10
11
# File 'app/controllers/stripe_local/webhooks_controller.rb', line 3

def events
			begin
_event_ = Stripe::Event.retrieve params[:id]
  Webhook.publish _event_
  head :ok
rescue Stripe::StripeError
  head :unauthorized
			end
end