From 4b31bc201909ca57873b3bacadd3a4349ee1288e Mon Sep 17 00:00:00 2001 From: Brian Quinn Date: Fri, 3 Dec 2010 09:33:02 +0000 Subject: [PATCH] More rounding issue fixes --- lib/spree/paypal_express.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spree/paypal_express.rb b/lib/spree/paypal_express.rb index 35a6d44..920543b 100644 --- a/lib/spree/paypal_express.rb +++ b/lib/spree/paypal_express.rb @@ -273,7 +273,7 @@ module Spree::PaypalExpress opts[:callback_timeout] = 3 elsif stage == "payment" #use real totals are we are paying via paypal (spree checkout almost complete) - opts[:subtotal] = ((order.item_total + order.credits.total)*100).to_i + opts[:subtotal] = ((order.item_total * 100) + (order.credits.total * 100)).to_i opts[:tax] = (order.tax_total*100).to_i opts[:shipping] = (order.ship_total*100).to_i