API INFO

Visa Topup API Documentation

Complete API reference for game top-up services and payment processing. Our APIs provide secure, reliable integration for your applications.

API Features Overview

Username Verification

Validate player IDs and usernames across multiple games before processing payments.

KHQR Payments

Generate and process payments using Bakong KHQR for secure transactions.

Secure Processing

MD5 hash verification and transaction tracking for all payment operations.

Multi-Region Support

Support for players across different regions with country detection.

API Base URL

Loading...

Active

All API endpoints are relative to this base URL.

Username Check Endpoints

Mobile Legends Username Check

POST /api/check_username/ml

Request Body (JSON):
{
  "player_id": "1322845437",
  "zone_id": "11542"
}

Success Response:
{
  "success": true,
  "username": "PlayerName"
}

Error Response:
{
  "success": false,
  "message": "Error message"
}

Mobile Legends Username & Country Check

POST /api/check_username/ml/country

Request Body (JSON):
{
  "player_id": "1322845437",
  "zone_id": "11542"
}

Success Response:
{
  "success": true,
  "username": "PlayerName",
  "country": "KH"
}

Error Response:
{
  "success": false,
  "message": "Error message"
}

Free Fire Username Check

POST /api/check_username/ff

Request Body (JSON):
{
  "player_id": "12345678"
}

Success Response:
{
  "success": true,
  "username": "PlayerName"
}

Error Response:
{
  "success": false,
  "message": "Error message"
}

Honor of Kings Username Check

POST /api/check_username/hok

Request Body (JSON):
{
  "player_id": "3878290003290102400"
}

Success Response:
{
  "success": true,
  "username": "PlayerName"
}

Error Response:
{
  "success": false,
  "message": "Error message"
}

API Base URL

Loading...

Active

All API endpoints are relative to this base URL.

Bakong Payment API

API endpoints for creating and checking Bakong payments with KHQR integration.

Create Payment

POST /api/bakong/create_payment

Request Parameters (Form Data):
bank_account=lim_visa1@trmc
merchant_name=VISA TOPUP
amount=0.00

Success Response:
{
  "success": true,
  "bank_account": "lim_visa1@trmc",
  "merchant_name": "VISA TOPUP",
  "qr_string": "{qr_string}",
  "qr_image": "https://www.visatopup.shop/api/bakong/khqr/qr/ABCDE",
  "md5_hash": "{md5_hash}",
  "transaction_id": "TRX1761195893"
}

Note: When amount=0.00, the payer can specify any amount when scanning the QR code.
Amount field is only included in response when greater than 0.

Error Response:
{
  "error": "Error message"
}

Check Payment by MD5 Hash

POST /api/bakong/check_payment/md5

Request Parameters (Form Data):
md5_hash={md5_hash}

Success Response (UNPAID):
{
  "bank_account": "lim_visa1@trmc",
  "merchant_name": "VISA TOPUP",
  "md5_hash": "{md5_hash}",
  "transaction_id": "TRX1761195893",
  "status": "UNPAID"
}

Success Response (PAID):
{
  "bank_account": "lim_visa1@trmc",
  "merchant_name": "VISA TOPUP",
  "md5_hash": "{md5_hash}",
  "transaction_id": "TRX1761195893",
  "status": "PAID",
  "amount": 1.00,
  "currency": "USD"
}

Note: Currency field can be "USD" or "KHR" depending on the payment.
Amount and currency fields are only included when status is PAID.

Status Values:
• UNPAID - Payment not received
• PAID - Payment completed successfully
• EXPIRED - Transaction expired

Error Response:
{
  "error": "Error message"
}

Check Payment by Transaction ID

POST /api/bakong/check_payment/transaction_id

Request Parameters (Form Data):
transaction_id={transaction_id}

Success Response (UNPAID):
{
  "bank_account": "lim_visa1@trmc",
  "merchant_name": "VISA TOPUP",
  "md5_hash": "{md5_hash}",
  "transaction_id": "TRX1761195893",
  "status": "UNPAID"
}

Success Response (PAID):
{
  "bank_account": "lim_visa1@trmc",
  "merchant_name": "VISA TOPUP",
  "md5_hash": "{md5_hash}",
  "transaction_id": "TRX1761195893",
  "status": "PAID",
  "amount": 1.00,
  "currency": "USD"
}

Note: Currency field can be "USD" or "KHR" depending on the payment.
Amount and currency fields are only included when status is PAID.

Status Values:
• UNPAID - Payment not received
• PAID - Payment completed successfully
• EXPIRED - Transaction expired

Error Response:
{
  "error": "Error message"
}

API Testing Console

Test all Visa Topup API endpoints directly from this console. Enter the required parameters and see the responses in real-time.

Current Configuration

Base URL: Loading...

The API tests will use your current localhost URL automatically.

Username Check APIs

Mobile Legends Username Check
Free Fire Username Check
Honor of Kings Username Check

Bakong Payment APIs

Create Payment
Check Payment

API Benefits

Real-time Verification

Instant username confirmation

Error Prevention

Reduce wrong ID entries

Enhanced Security

Verified account ownership

Better User Experience

Confident transactions