Fix calls for spree root url. [fix #102]

This commit is contained in:
Jeff Dutil 2012-11-26 22:01:24 -05:00
parent 9a2234d113
commit 00b170eed2
2 changed files with 2 additions and 9 deletions

View File

@ -320,7 +320,7 @@ module Spree
if stage == "checkout"
opts[:handling] = 0
opts[:callback_url] = spree_root_url + "paypal_express_callbacks/#{order.number}"
opts[:callback_url] = spree.root_url + "paypal_express_callbacks/#{order.number}"
opts[:callback_timeout] = 3
elsif stage == "payment"
#hack to add float rounding difference in as handling fee - prevents PayPal from rejecting orders
@ -353,7 +353,7 @@ module Spree
end
{
:callback_url => spree_root_url + "paypal_shipping_update",
:callback_url => spree.root_url + "paypal_shipping_update",
:callback_timeout => 6,
:callback_version => '61.0',
:shipping_options => shipping_default

View File

@ -1,7 +0,0 @@
module Spree
module UrlHelpers
def spree
Spree::Core::Engine.routes.url_helpers
end
end
end