Passing total to the payment processor tool after running total through complex discount structure