Move paypal routes out of spree namespace

This commit is contained in:
Matt-Yorkley
2021-12-04 11:52:35 +00:00
parent 575f409ebf
commit 0b48fa540a
2 changed files with 7 additions and 6 deletions

View File

@@ -68,6 +68,13 @@ Openfoodnetwork::Application.routes.draw do
resources :callbacks, only: [:index]
resources :webhooks, only: [:create]
end
namespace :payment_gateways do
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
constraints SplitCheckoutConstraint.new do
get '/checkout', to: 'split_checkout#edit'

View File

@@ -167,10 +167,4 @@ Spree::Core::Engine.routes.draw do
end
resources :products
# Used by spree_paypal_express
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