GuidesKHQR payment API
KHQR payment API for developers in Cambodia
Dalo is a KHQR payment API: your server makes one HTTPS call per order and gets back a KHQR for the exact amount, a hosted checkout page and, a few seconds after the customer pays, a signed webhook. Customers pay from any KHQR banking app in Cambodia, and the money goes straight to the merchant's own ABA account. There is no merchant application and no paperwork: you paste your ABA Payment Link and get an API key.
How it works
- Connect a store. Sign in at dalodesk.com/app, add a store and paste the ABA Payment Link you already have (you can make one in the ABA Merchant app in a minute). To build first, start the store in test mode and skip this until you go live.
- Create a payment from your server.
POST /v1/paymentswith the amount and your order id. The response hascheckout_url,qr_image_url, the rawqr_stringand links that open ABA Mobile on the same phone. - Show the QR. Send the customer to
checkout_url(a mobile-friendly page that updates itself), or show the QR inside your own page. - Fulfil on the webhook. Dalo sends
payment.completed, signed with HMAC-SHA256, the moment the payment is confirmed. Ship the order then.
Create a payment
curl https://dalodesk.com/v1/payments \
-H "Authorization: Bearer dk_live_..." \
-H "Idempotency-Key: order_1024_1" \
-H "Content-Type: application/json" \
-d '{ "amount": "4.50", "reference_id": "order_1024",
"success_url": "https://shop.example/checkout/return" }'
Response
201 Created
{
"id": "pay_8Qm2kV3xLp9c",
"status": "pending",
"livemode": true,
"amount": "4.50",
"currency": "USD",
"reference_id": "order_1024",
"checkout_url": "https://dalodesk.com/pay/pay_8Qm2kV3xLp9c?t=…",
"qr_image_url": "https://dalodesk.com/api/public/payments/pay_8Qm2kV3xLp9c/qr.svg",
"qr_string": "000201010212…",
"expires_at": "2026-11-12T05:19:00.000Z"
}
What you get
- A KHQR for every order, for the exact amount, ready in about a second. Each payment has its own QR, so two customers paying the same amount never get mixed up.
- Paid status in seconds, by webhook or by polling
GET /v1/payments/{id}. - A hosted checkout with a countdown, "Open in ABA Mobile" for customers on the same phone, and redirects back to your site.
- Test mode with
dk_test_keys: simulated payments and real signed webhooks, no money and no bank link needed. See Test KHQR payments without a bank account. - Telegram alerts for the shop owner when money arrives, branches for shops with several locations, and a dashboard with every payment and a CSV export.
- Docs written for AI assistants too: llms-full.txt, an OpenAPI 3.1 spec, and a "Copy prompt for AI" button on the docs page for Laravel, Node.js, Next.js, WooCommerce, Django and plain HTML.
Pricing
| Plan | Price | Paid sales a month | Stores |
|---|---|---|---|
| Free | $0 | 50 | 1 |
| Starter | $10 / month | 1,000 | 2 |
| Pro | $30 / month | 3,000 | 2 |
| Agency | $100 / month | 10,000 pooled | 5 |
Only paid sales count. Test payments, expired QRs and cancelled orders are free. Full details on the pricing section.
Guides for your stack
- Laravel (PHP)
- Node.js and Express
- Next.js (App Router)
- Python and Django
- Flask and FastAPI
- Static website
- Telegram bot
Questions
What is KHQR?
KHQR is Cambodia's national QR payment standard. One KHQR code can be scanned and paid from any KHQR banking app in the country, so a shop does not need a separate code per bank.
Do I need a merchant application or company papers to use Dalo?
No. Dalo works on top of the ABA Payment Link a merchant already has. You paste the link, verify the store once in the dashboard, and create an API key. No merchant application, no paperwork.
Does Dalo hold the money?
No. Customers pay the merchant's own ABA account directly. Dalo creates the QR, watches for the payment and tells your app. It never holds funds and never asks for a bank password, PIN or OTP.
Which currency is supported?
USD. Amounts are strings with two decimals, from 0.01 to 10,000 per payment.
Which banking apps can customers pay with?
Any KHQR banking app in Cambodia. Customers on the same phone can tap "Open in ABA Mobile" on the checkout page, or save the QR and scan it from their album in another banking app.
Can I build and test without a bank account?
Yes. Test keys (dk_test_) create simulated payments with real signed webhooks. You only need the ABA Payment Link when you go live.
How fast is the paid status?
The QR appears in about a second, and the payment shows as paid within seconds of the customer confirming in their banking app.
Get a test key in two minutes.
Sign in with your email, create a store in test mode and copy a dk_test_ key. No merchant application, no paperwork. Free up to 50 sales a month.
More guidesLaravelNode.jsNext.jsDjangoTelegram botTest modeCheck payment statusFlask and FastAPIStatic websiteChoosing an API