Sha256: 42e292bca0645e49ff11f0d0dce5b3b951246c3c89e699831b956181c99cd820

Contents?: true

Size: 266 Bytes

Versions: 1

Compression:

Stored size: 266 Bytes

Contents

module StripeLocal
	class WebhooksController < ApplicationController
    def events
			begin
				_event_ = Stripe::Event.retrieve params[:id]
		    Webhook.publish _event_
		    head :ok
		  rescue Stripe::StripeError
		    head :unauthorized
			end
    end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stripe_local-0.2.5 app/controllers/stripe_local/webhooks_controller.rb