Order and payment statuses
Two sets of statuses, what each means, and why they're separate.
Every order carries two statuses: how far the order has got, and whether the money has arrived. They're separate, because cash stores usually make first and take payment later, while online payment is the other way round.
Order status
| Status | Meaning |
|---|---|
| Awaiting confirmation | The customer submitted it; you haven't confirmed yet |
| Confirmed | You've seen it and you're making it |
| Paid | The money arrived |
| Cancelled | This order isn't happening |
| Refunded | The money went back |
Payment status
| Status | Meaning |
|---|---|
| Awaiting payment | An online payment flow hasn't finished |
| Unpaid | Cash / counter payment, money not yet taken |
| Paid | Received |
| Payment failed | The online payment didn't go through |
| Cancelled | The payment flow was cancelled |
| Refunded | Refunded |
The two common flows
Cash store (takeaway counter)
Customer submits → Awaiting confirmation / Unpaid
You press Confirm → Confirmed / Unpaid
Food ready, customer pays, you press Confirm payment → Paid / PaidOnline payment
Customer submits and pays → automatically Paid / Paid once payment succeedsWith online payment you never press "Confirm payment" — the system updates it.
Channel
Orders also carry a channel, saying where they came from:
| Channel | Source |
|---|---|
| Dine-in | Scanned a table QR |
| Takeaway | Opened the store link, or the takeaway branch of a kiosk flow |
| Delivery | Reserved (not available yet) |
| POS | Reserved (counter terminal, planned) |
Why two separate statuses?
Because "the food is ready" and "the money arrived" aren't the same event in a real restaurant.
Dine-in makes it obvious: customers sit down, order, and pay when they leave — the kitchen served them long before that. Forcing both into one status makes the books wrong.