Switch to a version of better_paypal_express that does not define

routes and define those routes on the OFN side
This commit is contained in:
Luis Ramos
2020-10-27 13:49:00 +00:00
parent 8f2d52b9e3
commit 3beea43143
2 changed files with 7 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ GIT
GIT
remote: https://github.com/openfoodfoundation/better_spree_paypal_express.git
revision: 3ae54d8eaeee6c0a8bc4f0e5ee03b1e48b2450c0
revision: 1a477e9f7763297944cc99b6f4dd3d962aa963e9
branch: 2-1-0-stable
specs:
spree_paypal_express (2.0.3)

View File

@@ -107,6 +107,8 @@ Spree::Core::Engine.routes.draw do
resources :payments do
member do
put :fire
get 'paypal_refund'
post 'paypal_refund'
end
end
@@ -171,4 +173,8 @@ Spree::Core::Engine.routes.draw do
get '/checkout/:state', :to => 'checkout#edit', :as => :checkout_state
get '/content/cvv', :to => 'content#cvv', :as => :cvv
get '/content/*path', :to => 'content#show', :as => :content
get '/paypal', :to => "paypal#express", :as => :paypal_express
get '/paypal/confirm', :to => "paypal#confirm", :as => :confirm_paypal
get '/paypal/cancel', :to => "paypal#cancel", :as => :cancel_paypal
get '/paypal/notify', :to => "paypal#notify", :as => :notify_paypal
end