KHQR Logo

KHQR SDK Demo

Bakong Payment System

Bakong API Tester

Test Bakong API endpoints using the khqr.api methods. Optionally provide your own JWT token or use the server's configured token.

Note: You need a valid Bakong API token to use these endpoints. Register at api-bakong.nbc.gov.kh to get your token. Set it in your .env file as BAKONG_API_TOKEN or enter it below.

JWT Token (Optional)

Using server token from environment

Renew Token

Renew your Bakong API authentication token using your registered email address.

The email address registered with your Bakong API account

Check Bakong Account

Verify if a Bakong account ID exists in the system. Returns responseCode 0 if account exists, 1 if not found.

Format: username@bank (e.g., coffee@aclb, merchant@wing)

Check Transaction by MD5

Look up a transaction using its MD5 hash. The MD5 is generated when you create a KHQR code and can be used to track payment status.

The MD5 hash returned when generating a QR code (32 characters)

Check Transaction by Short Hash

Look up a transaction using its short hash, amount, and currency. This requires the transaction hash (8 hex characters), amount, and currency to verify.

8-character hexadecimal hash (e.g., a1b2c3d4)