Hi guys,
If I retrieve an order and get the following response. (detailed underneath) Where ‘state’ is “COMPLETED”. Does this mean that the payment has gone through?
{
“order”: {
“id”: “VWliC8YXuB1hDNMKROr8YxB10aKZY”,
“location_id”: “LXHPD4390JST8”,
“line_items”: [
{
“uid”: “PPPoonjLPWOd5eQ9U0YBaD”,
“quantity”: “1”,
“name”: “Token Purchase”,
“base_price_money”: {
“amount”: 1000,
“currency”: “GBP”
},
“gross_sales_money”: {
“amount”: 1000,
“currency”: “GBP”
},
“total_tax_money”: {
“amount”: 0,
“currency”: “GBP”
},
“total_discount_money”: {
“amount”: 0,
“currency”: “GBP”
},
“total_money”: {
“amount”: 1000,
“currency”: “GBP”
},
“variation_total_price_money”: {
“amount”: 1000,
“currency”: “GBP”
},
“item_type”: “ITEM”,
“total_service_charge_money”: {
“amount”: 0,
“currency”: “GBP”
}
}
],
“created_at”: “2023-08-08T14:01:09.561Z”,
“updated_at”: “2023-08-08T14:01:43.000Z”,
“state”: “COMPLETED”,
“version”: 4,
“total_tax_money”: {
“amount”: 0,
“currency”: “GBP”
},
“total_discount_money”: {
“amount”: 0,
“currency”: “GBP”
},
“total_tip_money”: {
“amount”: 0,
“currency”: “GBP”
},
“total_money”: {
“amount”: 1000,
“currency”: “GBP”
},
“closed_at”: “2023-08-08T14:01:43.090Z”,
“tenders”: [
{
“id”: “1ATYE253fm9jQ9IYmBaVwITrvaB”,
“location_id”: “LXHPD4390JST8”,
“transaction_id”: “VWliC8YXuB1hDNMKROr8YxB10aKZY”,
“created_at”: “2023-08-08T14:01:42Z”,
“note”: “Online Transaction”,
“amount_money”: {
“amount”: 1000,
“currency”: “GBP”
},
“type”: “CARD”,
“card_details”: {
“status”: “CAPTURED”,
“card”: {
“card_brand”: “VISA”,
“last_4”: “1111”,
“fingerprint”: “sq-1-GxI7Y6M_WQZrkAVS_WaxCCnlq0lnSu3WB7qyA3lB9csE-uZ6BDOiWaeoET7qni5hxw”
},
“entry_method”: “KEYED”
}
}
],
“total_service_charge_money”: {
“amount”: 0,
“currency”: “GBP”
},
“net_amounts”: {
“total_money”: {
“amount”: 1000,
“currency”: “GBP”
},
“tax_money”: {
“amount”: 0,
“currency”: “GBP”
},
“discount_money”: {
“amount”: 0,
“currency”: “GBP”
},
“tip_money”: {
“amount”: 0,
“currency”: “GBP”
},
“service_charge_money”: {
“amount”: 0,
“currency”: “GBP”
}
},
“source”: {
“name”: “Sandbox for sq0idp-_wfRQ9iHCjtvmdLEZqFlEw”
},
“net_amount_due_money”: {
“amount”: 0,
“currency”: “GBP”
}
}
}
Cheers,
David