How to pass the calculated amount to the form payment tool