Change Stripe webhook handling to post request

This commit is contained in:
stveep
2017-01-21 10:27:25 +00:00
committed by Rob Harrington
parent a039286240
commit 22e4a50807

View File

@@ -66,7 +66,7 @@ Openfoodnetwork::Application.routes.draw do
post 'embedded_shopfront/disable', to: 'application#disable_embedded_styles'
get '/stripe/callback', :to => 'admin/enterprises#stripe_connect_callback'
get '/stripe/webhook', :to => 'admin/stripe_accounts#destroy_from_webhook'
post '/stripe/webhook', :to => 'admin/stripe_accounts#destroy_from_webhook'
resources :enterprises do
collection do