Tweaking our paypal express plumbing further

This commit is contained in:
Will Marshall
2014-03-07 15:27:52 +11:00
parent 40c986892e
commit 451e76b33f
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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