API Introduction
Welcome to the BD Pay Developer API engine. Our high-performance REST API nodes allow you to route, process, and auto-verify automated Crypto payments (BEP20 / TRC20 / Binance Pay) and local payment methods safely inside your custom applications or automated billing setups.
Production API Base Endpoint Node: https://bdpay.co/api/v1
Authentication Loop
All outbound network security handshake queries require explicit verification layers passed directly inside your custom HTTP Request Headers arrays.
// đ°ī¸ Internal Security Header Authentication Structure
GET /api/v1/balance
HTTP Headers:
X-API-KEY: your_merchant_api_key_string
X-API-SECRET: your_merchant_secret_key_hash
Create Payment Request Node
Use this specific route endpoint to dynamically declare a new system transactional record object and retrieve a secure checkout payment link session window for the target payee.
/payment/create
| Parameter | Type | Description |
|---|---|---|
| amount | float / numeric | The expected transaction value in standard USD currency equivalent (Min 1.00). |
| order_id | string | Your unique alphanumeric internal order billing or reference ID (e.g. INV-1002). |
| method | string | Optional pre-set filter. Pass bep20, trc20, or binance to pre-select gateway mode. |
PHP cURL Native Integration Example:
<?php
$api_target = "https://bdpay.co/api/v1/payment/create";
$post_payload = [
'amount' => 25.50,
'order_id' => 'BDP-ORDER-' . time(),
'method' => 'bep20'
];
$ch = curl_init($api_target);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query($post_payload),
CURLOPT_HTTPHEADER => [
'X-API-KEY: your_merchant_api_key_string',
'X-API-SECRET: your_merchant_secret_key_hash'
]
]);
$server_response = curl_exec($ch);
curl_close($ch);
$json_data = json_decode($server_response, true);
if (isset($json_data['success']) && $json_data['success'] === true) {
header("Location: " . $json_data['checkout_url']);
exit;
}
?>
Supported Crypto Ledger Protocols
The runtime engine natively monitors real-time transaction handshakes via distributed RPC endpoints across these specific chain protocol configurations:
BNB Smart Chain (BEP20)
Tracks ledger deposits automatically inside your designated BSC recipient address configuration using verified BscScan RPC nodes with block timestamp lock.
TRON Network (TRC20)
Synchronizes inbound token adjustments directly through persistent internal server cron jobs tied directly to TronGrid RPC infrastructure loops.
Instant Payment Notification (IPN / Callback)
Once blockchain metadata sync settles successfully, our engine issues an automated secure asynchronous POST hook back to your designated listener hook route containing signature data.
// đ°ī¸ Sample Server-to-Server IPN Outbound Callback JSON Format
{
"status": "success",
"invoice_id": "API8F41A2D",
"order_id": "INV-1002",
"amount_received": "25.50",
"crypto_method": "bep20",
"signature_hash": "62e5b7c7b120f269c3a36237..."
}
GSM Theme Integration Guide
GSM Theme (Laravel Platform) āĻ BD Pay āĻā§āĻāĻāϝāĻŧā§ āϝā§āĻā§āϤ āĻāϰāĻžāϰ āϏāĻŽā§āĻĒā§āϰā§āĻŖ āĻĒā§āϰāĻā§āϰāĻŋāϝāĻŧāĻž āύāĻŋāĻā§ āϧāĻžāĻĒā§ āϧāĻžāĻĒā§ āĻĻā§āĻāϝāĻŧāĻž āĻšāϞā§:
1 āĻā§āĻāĻāϝāĻŧā§ āĻā§āϞāĻžāϏ āĻĢāĻžāĻāϞ āĻāĻĒāϞā§āĻĄ āĻāϰā§āύ
āĻāĻĒāύāĻžāϰ GSM Theme āϏāĻžāϰā§āĻāĻžāϰā§āϰ āĻĢāĻžāĻāϞ āĻŽā§āϝāĻžāύā§āĻāĻžāϰ⧠āϝāĻžāύ āĻāĻŦāĻ āύāĻŋāĻā§āϰ āϞā§āĻā§āĻļāύ⧠Bdpay.php āĻĢāĻžāĻāϞāĻāĻŋ āϤā§āϰāĻŋ āĻāϰā§āύ:
2 āϞā§āĻā§ āĻāĻĒāϞā§āĻĄ āĻāϰā§āύ
BD Pay āĻāϰ āϞā§āĻā§āĻāĻŋ āĻĄāĻžāĻāύāϞā§āĻĄ āĻāϰ⧠āĻāĻĒāύāĻžāϰ GSM Theme āĻāϰ āĻĒāĻžāĻŦāϞāĻŋāĻ āĻĢā§āϞā§āĻĄāĻžāϰ⧠āĻāĻĒāϞā§āĻĄ āĻāϰā§āύ:
3 āĻ ā§āϝāĻžāĻĄāĻŽāĻŋāύ āĻĒā§āϝāĻžāύā§āϞ āĻāύāĻĢāĻŋāĻāĻžāϰā§āĻļāύ
- GSM Theme āĻāϰ Admin Panel > Payment Gateways āĻ āĻĒā§āϰāĻŦā§āĻļ āĻāϰā§āύāĨ¤
- BD PAY āĻā§āĻāĻāϝāĻŧā§āĻāĻŋ āĻā§āĻāĻā§ āĻĒā§ā§ā§ Edit āĻŦāĻžāĻāύ⧠āĻā§āϞāĻŋāĻ āĻāϰā§āύāĨ¤
- āĻāĻĒāύāĻžāϰ BD Pay āĻŽāĻžāϰā§āĻā§āύā§āĻ āĻĄā§āϝāĻžāĻļāĻŦā§āϰā§āĻĄ āĻĨā§āĻā§ āĻĒā§āϰāĻžāĻĒā§āϤ API Key āĻāĻŦāĻ API Secret āĻŦāϏāĻŋā§ā§ āĻĻāĻŋāύāĨ¤
- Settlement Currency āĻĄā§āϰāĻĒāĻĄāĻžāĻāύ āĻĨā§āĻā§ āĻāĻĒāύāĻžāϰ āĻĒāĻāύā§āĻĻ āĻ āύā§āϝāĻžā§ā§ USD ($) āĻŦāĻž BDT (ā§ŗ) āϏāĻŋāϞā§āĻā§āĻ āĻāϰ⧠Save āĻāϰā§āύāĨ¤
Dhru Fusion Integration Guide
Dhru Fusion GSM āϏāĻžāϰā§āĻāĻžāϰ āϏāĻĢāĻāĻāϝāĻŧā§āϝāĻžāϰ⧠BD Pay āĻĒā§āϞāĻžāĻāĻāύ āĻāύāϏā§āĻāϞ āĻāϰāĻžāϰ āύāĻŋāϝāĻŧāĻŽ:
1 āĻŽāĻĄāĻŋāĻāϞ āĻĢāĻžāĻāϞāĻā§āϞ⧠āĻāĻĒāϞā§āĻĄ āĻāϰā§āύ
āĻāĻĒāύāĻžāϰ Dhru Fusion āϰā§āĻ āĻĢā§āϞā§āĻĄāĻžāϰ⧠āύāĻŋāĻā§āϰ āĻĄāĻŋāϰā§āĻā§āĻāϰāĻŋ āĻ āύā§āϝāĻžā§ā§ āĻĢāĻžāĻāϞāĻā§āϞ⧠āĻāĻā§āϏāĻā§āϰā§āϝāĻžāĻā§āĻ āĻāϰ⧠āĻĻāĻŋāύ:
đ modules/gateways/bdpay/bdpay_process.php
đ modules/gateways/bdpay/logo.png
2 Dhru Fusion āĻ ā§āϝāĻžāĻĄāĻŽāĻŋāύ āĻĒā§āϝāĻžāύā§āϞ āϏāĻā§āϰāĻŋāϝāĻŧāĻāϰāĻŖ
- Dhru Fusion āĻāϰ āĻ ā§āϝāĻžāĻĄāĻŽāĻŋāύ⧠āϞāĻāĻāύ āĻāϰ⧠Settings > Payment Gateways āĻ āϝāĻžāύāĨ¤
- All Gateways āĻā§āϝāĻžāĻŦ āĻĨā§āĻā§ BD PAY āĻā§āĻāĻā§ā§āĻāĻŋ āĻā§āĻāĻā§ āĻŦā§āϰ āĻāϰ⧠Activate āĻŦāĻžāĻāύ⧠āĻā§āϞāĻŋāĻ āĻāϰā§āύāĨ¤
- āĻā§āĻāĻā§ā§ āϏā§āĻāĻŋāĻāϏ⧠āĻāĻŋā§ā§ āĻāĻĒāύāĻžāϰ BD Pay API Key āĻ API Secret āĻĻāĻŋāύāĨ¤
- Exchange Rate āĻ āĻŋāĻ āĻāϰā§āύ (āϝā§āĻŽāύ: 1 USD = āĻāϤ BDT āĻšāĻŦā§) āĻāĻŦāĻ Save Changes āĻĻāĻŋāύāĨ¤
đĄ āĻĒā§āϰ⧠āĻāĻŋāĻĒ: Dhru Fusion āĻ āĻā§āϏā§āĻ āĻĒā§āĻŽā§āύā§āĻ āϏāĻĢāϞ āĻšāĻā§āĻžāϰ āĻĒāϰ āĻāύāĻā§ā§āϏ āĻ āĻā§āĻŽā§āĻāĻŋāĻ āĻĒā§āĻāĻĄ āĻšā§ā§ āĻā§āϞāĻžāϝāĻŧā§āύā§āĻā§āϰ āĻŦā§āϝāĻžāϞā§āύā§āϏ āĻĢāĻžāύā§āĻĄ āĻ ā§āϝāĻžāĻāĻžāĻāύā§āĻā§ āϏā§āĻŦā§āĻāĻā§āϰāĻŋā§āĻāĻžāĻŦā§ āĻā§āϰā§āĻĄāĻŋāĻ āĻšā§ā§ āϝāĻžāĻŦā§āĨ¤
System Exception & Error Declarations
Inbound request processing failure routes return specific standard JSON failure payloads:
{"success": false, "error_code": "IP_RESTRICTED", "message": "API Request source IP does not match the protected host locker routing node configuration."}