Sha256: e35c7fac3e987c0d3e1f7725a1a2e62a7422fb8b533c34bb6bf8a16d579a292d

Contents?: true

Size: 267 Bytes

Versions: 10

Compression:

Stored size: 267 Bytes

Contents

module StripeLocal
	module 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

10 entries across 10 versions & 1 rubygems

Version Path
stripe_local-0.2.4 app/controllers/stripe_local/webhooks_controller.rb
stripe_local-0.2.3 app/controllers/stripe_local/webhooks_controller.rb
stripe_local-0.2.2 app/controllers/stripe_local/webhooks_controller.rb
stripe_local-0.2.1 app/controllers/stripe_local/webhooks_controller.rb
stripe_local-0.2.0 app/controllers/stripe_local/webhooks_controller.rb
stripe_local-0.1.3 app/controllers/stripe_local/webhooks_controller.rb
stripe_local-0.1.2 app/controllers/stripe_local/webhooks_controller.rb
stripe_local-0.1.1 app/controllers/stripe_local/webhooks_controller.rb
stripe_local-0.1.0 app/controllers/stripe_local/webhooks_controller.rb
stripe_local-0.0.2 app/controllers/stripe_local/webhooks_controller.rb