I'm using Square Point of Sale transaction using Square iOS Web API from my iOS application. I'm getting amount_invalid_format error when I pass any amount with 0.99 for example 1.99, 20.99, or so on.
This error occurs whenever you try to charge with an amount that is not an integer value, such as a decimal or a floating point number. One thing you can do to prevent this is to check and make sure the type of amount you're charging is a integer.
0
votes
This unit of amount is cent. So you need to pass a value 99 instead of 0.99.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more