How to pass calculated costs to Square?