Conditional logic is not passing the total from square payment fields