Accept ABA Payments
Without Official Merchant Keys

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.

Get Started Free View Documentation

Why Choose Ahnajak Pay?

Automate your checkout flow and get instantly notified when customers pay, with no complex merchant approvals.

Simple Link Binding

Simply enter your personal ABA Pay Link from your mobile app. No technical configuration or credentials from the bank required.

Secure Hashed API

Integrate securely with unique profile IDs and signature hashes (SHA1) that protect against fraud and transaction tampering.

Automated Webhooks

Receive immediate webhook notifications with customizable JSON payload templates as soon as the client scans and pays.

Simple Integration Docs

Redirect Flow Integration (PHP)

To initiate a checkout session, sign your parameters and redirect the client to our API endpoint.

redirect_checkout.php
// 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;