B Bakong APIFluid Payments
SELF-HOSTED ON YOUR VPS

Create KHQR.
Verify payments.

Generate dynamic Cambodia KHQR payments with the official SDK, display a PNG QR, and verify completed transactions through the official Bakong Open API.

Official KHQR SDK Server-side token Local transaction history
Live flow Ready
01
Create dynamic QRUnique transaction and MD5
02
Customer scansAny supported KHQR banking app
03
Verify at BakongReceiver, amount and currency checked
INTERACTIVE TESTER

Create a payment QR

The Bakong access token remains on your VPS. This browser only calls your own API.

Payment detailsChecking…

A dynamic QR expires automatically. The maximum configured lifetime is 10 minutes.

Your QR will appear here

Enter a test amount and create a dynamic KHQR.

DROP-IN ENDPOINTS

Simple integration

The routes match the structure of the reference API, with stricter receiver and amount verification.

GET/khqr/create

Create a unique dynamic KHQR and store its MD5.

?amount=10.50&bakongid=your_account@wing&merchantname=My Shop&username=user123
GET/qr/:tran_id

Render the saved KHQR as a PNG image.

GET/check/:tran_id

Check Bakong by the stored MD5 and verify receiver, amount, and currency.

GET/check_by_md5

Check a server-created MD5 with the expected receiving Bakong account.

?md5=32_character_hash&bakongid=your_account@wing