0
votes

i have read some issues regarding this but not clarified if they accept or not an amount with decimal value.

im a beginner to square. Please Help... Below is my error

errors : Array(1) 0 : category : "INVALID_REQUEST_ERROR" code : "EXPECTED_INTEGER" detail : "Expected an integer value." field : "amount_money.amount"

1

1 Answers

0
votes

The "amount" field is always in the lowest denomination for the currency being used. If you're using USD this would be in cents, for example. If you need to charge $1.50, then for the amount you will need to supply "150" in terms of cents.

Also asked here: EXPECTED_INTEGER — Issues with Square payment portal