How to pass the calculation value to Square payment?