Commits

Chris Moffitt  committed a8eebc4

Make sure we only send two decimal places to paypal.

  • Participants
  • Parent commits 11bd141

Comments (0)

Files changed (1)

File satchmo/apps/payment/modules/paypal/views.py

                 price = item.product.productvariation.get_qty_price(item.quantity, True)
             else:
                 price = item.product.get_qty_price(item.quantity, True)
-
-            recurring = {'product':item.product, 'price':price,}
+            recurring = {'product':item.product, 'price':price.quantize(Decimal('.01'))}
             trial0 = recurring['product'].subscriptionproduct.get_trial_terms(0)
             if len(order_items) > 1 or trial0 is not None or recurring['price'] < order.balance:
                 recurring['trial1'] = {'price': order.balance,}