Pass subtotals and discount to avoid rounding issues in paypal Closes #2806.