From c822dd30e4ba115860b36187f10c8fb2d14fd78c Mon Sep 17 00:00:00 2001 From: John Dyer Date: Wed, 15 Feb 2012 00:05:30 -0500 Subject: [PATCH] Fixes return url in checkout controller decorator --- app/controllers/spree/checkout_controller_decorator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/spree/checkout_controller_decorator.rb b/app/controllers/spree/checkout_controller_decorator.rb index 0e44c37..ee39f22 100644 --- a/app/controllers/spree/checkout_controller_decorator.rb +++ b/app/controllers/spree/checkout_controller_decorator.rb @@ -253,8 +253,8 @@ module Spree end opts = { #:return_url => request.protocol + request.host_with_port + "/spree/orders/#{order.number}/checkout/paypal_confirm?payment_method_id=#{payment_method}", - :return_url => "http://" + request.host_with_port + "/spree/orders/#{order.number}/checkout/paypal_confirm?payment_method_id=#{payment_method}", - :cancel_return_url => "http://" + request.host_with_port + "/spree/orders/#{order.number}/edit", + :return_url => "http://" + request.host_with_port + "/orders/#{order.number}/checkout/paypal_confirm?payment_method_id=#{payment_method}", + :cancel_return_url => "http://" + request.host_with_port + "/orders/#{order.number}/edit", :order_id => order.number, :custom => order.number, :items => items,