Guides

Step-by-step code for taking KHQR payments inside your own website, app or bot with the Dalo API. Every guide starts with a free test key, so you can build the whole flow before connecting a bank account.

KHQR payment API for developers in CambodiaAccept KHQR payments inside your own website, app or bot. One API call per order, a hosted checkout, signed webhooks and test mode. Free up to 50 sales a month. Accept KHQR payments in LaravelAdd KHQR payments to a Laravel app: create the payment with the Http client, redirect to the hosted checkout, and verify the signed webhook with hash_hmac. Copy-paste code. Accept KHQR payments in Node.js and ExpressA complete Express example for KHQR payments: create the payment with fetch, redirect to checkout, verify the HMAC-signed webhook with express.raw. Tested code. Accept KHQR payments in Next.jsKHQR payments in Next.js: a server-only client, a Route Handler that creates the payment, a webhook Route Handler that verifies the signature, and a return page. Accept KHQR payments in Python and DjangoKHQR payments in Django with requests: create the payment, redirect to checkout, verify the HMAC-SHA256 webhook with hmac.compare_digest. Works with Flask and FastAPI too. Accept KHQR payments in a Telegram botSell from a Telegram bot in Cambodia: create a KHQR payment per order, send it as a photo with a Pay button, and confirm in the chat when the signed webhook says paid. Test KHQR payments without a bank accountBuild and test a KHQR checkout before you have a bank link: dk_test_ keys, simulated paid, expired and failed payments, and real signed webhooks with livemode false. How to check if a KHQR payment is paidKnow the moment a KHQR payment is paid: a signed webhook for fulfilment, polling GET /v1/payments/{id} for the screen the customer is watching. Statuses, timing and tested code. Accept KHQR payments in Flask and FastAPIA complete Flask app for KHQR payments with requests: create the payment, redirect to checkout, verify the signed webhook on the raw body. Plus the FastAPI webhook. Tested code. Accept KHQR payments on a static websiteAdd a KHQR Pay button to a static HTML site with one small Cloudflare Worker: create the payment, redirect to the hosted checkout, verify the webhook with Web Crypto. Tested code. How to choose a KHQR payment APITen questions to ask before you pick a KHQR payment API in Cambodia: where the money goes, setup, unique QRs, webhooks, test mode, pricing, limits and docs. With Dalo's answers.

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.

Start freeRead the API docs