Moyasar · pay at the table and split the bill
Hosted Moyasar checkout with exact restaurant bill splitting
A guest can pay the whole bill or split it equally. The server calculates each share in minor units, creates an independent Moyasar invoice, then verifies the result through the API before recording payment.
Operations overview
A live view of orders, tables and payments.
Sales through the day
Order activityTable occupancy
Latest orders
Zadira Dine
The calculation happens on the server
The server accepts a split count from 2 to 12 and divides the trusted order total in minor units. Any remainder is distributed deterministically so the shares always add up to the exact bill.
A clearer payment flow for guests and staff
One Moyasar invoice per share
Every participant receives a hosted Moyasar invoice with an independently trackable status.
Idempotent retries
The local payment group uses an idempotency key, and every update is matched to its existing share reference.
No card fields inside Zadira
Guests continue to Moyasar’s hosted page instead of entering card numbers in the restaurant app.
An exact split example
- 1
Order total
A SAR 100.01 bill is stored as 10,001 halalas.
- 2
Guest count
The guest chooses to split the bill across three people.
- 3
Exact shares
The result is SAR 33.34 + 33.34 + 33.33, with no missing or extra halala.
- 4
Track settlement
The admin shows each share state and the overall bill settlement state.
Moyasar Sandbox is integrated in the backend
The backend supports Moyasar hosted invoices in test mode, including safe callback/return handling and direct verification of invoice status, amount and currency. The public preview creates no transactions; production still requires an activated merchant account, fresh live keys, and an independent security and compliance review.
Included in the current scope
- Full payment or an equal split into 2–12 shares
- Exact minor-unit arithmetic
- Hosted Moyasar invoices only
- Server-side Moyasar API verification with callback replay protection
Payment and split-bill questions
Does the live preview charge real money?
No. The public preview never charges a card. The backend supports Moyasar test keys; live payments require merchant activation and fresh production keys stored as server secrets.
Does Zadira store card details?
No. The architecture uses a provider-hosted checkout page and the restaurant interface contains no card-number fields.
How are rounding remainders handled?
The server divides the total in minor units and distributes the remainder across the first shares, so the exact total always matches.
See the split-bill experience
Try the non-charging flow, then discuss the Moyasar merchant setup and production environment for your operation.