Convert your personal or shop ABA Pay Link into a fully automated, dynamic KHQR payment API. Built for developers, top-up portals, and e-commerce websites in Cambodia.
Automate your checkout flow and get instantly notified when customers pay, with no complex merchant approvals.
Simply enter your personal ABA Pay Link from your mobile app. No technical configuration or credentials from the bank required.
Integrate securely with unique profile IDs and signature hashes (SHA1) that protect against fraud and transaction tampering.
Receive immediate webhook notifications with customizable JSON payload templates as soon as the client scans and pays.
To initiate a checkout session, sign your parameters and redirect the client to our API endpoint.
// 1. CONFIGURATION
$gateway_url = "http://localhost:3000/api/payment/requestv2";
$profile_id = "YOUR_PROFILE_ID";
$secret_key = "YOUR_SECRET_KEY";
// 2. TRANSACTION DETAILS
$payment_data = [
"transaction_id" => "ORDER_" . time(),
"amount" => 12.50,
"success_url" => "https://yoursite.com/done",
"remark" => "Topup Account @john"
];
// 3. SECURITY HASH
// Formula: hash = SHA-256(profile_id + transaction_id + amount + secret_key)
$payment_data['hash'] = hash('sha256',
$profile_id
. $payment_data['transaction_id']
. $payment_data['amount']
. $secret_key
);
// 4. REDIRECT
$final_url = $gateway_url . "/" . $profile_id . "?" . http_build_query($payment_data);
header("Location: " . $final_url);
exit;