mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Tweaking our paypal express plumbing further
This commit is contained in:
@@ -100,7 +100,7 @@ class Shop::CheckoutController < Spree::CheckoutController
|
||||
render :edit and return
|
||||
end
|
||||
|
||||
redirect_to(paypal_payment_order_checkout_url(@order, :payment_method_id => payment_method.id))
|
||||
redirect_to(main_app.shop_paypal_payment_url(@order, :payment_method_id => payment_method.id))
|
||||
true
|
||||
|
||||
end
|
||||
|
||||
@@ -13,6 +13,8 @@ Openfoodnetwork::Application.routes.draw do
|
||||
#end
|
||||
get '/checkout', :to => 'checkout#edit' , :as => :checkout
|
||||
put '/checkout', :to => 'checkout#update' , :as => :update_checkout
|
||||
|
||||
get "/checkout/paypal_payment", to: 'checkout#paypal_payment', as: :paypal_payment
|
||||
end
|
||||
|
||||
resources :enterprises do
|
||||
|
||||
Reference in New Issue
Block a user