How to pass the total calculation into a payment field?