I am trying to build a checkout using the Square API. I am getting the following error:
'order.total_money.amount' must be greater than 1.
I am sending:
<cfset stFields = {
"idempotency_key": "*******-258a-402e-abb5-fee8e3d16884",
"redirect_url": "https://graftondecafundraising.org/SquareOrderComplete.cfm",
"order": {
"total_money":{
"amount": 900},
"idempotency_key": "******-258a-402e-abb5-fee8e3d16884",
"order": {
"location_id": "******C7F3RZ1S5",
"customer_id": "customer_id",
"reference_id": "reference_id"
}
},
"ask_for_shipping_address": false,
"merchant_support_email": "merchant+support@website.com",
"pre_populate_buyer_email": "example@email.com"
}
>
And the JSON Reply is showing:
Thanks in advance for any suggestions!