Permalink
Browse files

More rounding issue fixes

  • Loading branch information...
BDQ committed Dec 3, 2010
1 parent 898b6d4 commit 4b31bc201909ca57873b3bacadd3a4349ee1288e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/spree/paypal_express.rb
@@ -273,7 +273,7 @@ def order_opts(order, payment_method, stage)
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

0 comments on commit 4b31bc2

Please sign in to comment.