Sha256: bc9de20563834f9e2b301558481ea68704e9870011fb4ad8bf6d314cddea99e2

Contents?: true

Size: 256 Bytes

Versions: 1

Compression:

Stored size: 256 Bytes

Contents

module StripeEvent
  class WebhookController < ActionController::Base
    def event
      event = Stripe::Event.retrieve(params[:id])
      StripeEvent.publish(event)
      head :ok
    rescue Stripe::StripeError
      head :unauthorized
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stripe_event-0.3.1 app/controllers/stripe_event/webhook_controller.rb