How to send calculated value to payment field?