How to pass total to payment field.