Introduction
Welcome to the Ariful Codes Pay Developer API. Our REST API allows you to integrate automated mobile banking payments (Bkash, Nagad, Rocket) directly into your website or application with minimal effort.
Base URL:
https://www.pay-saas.arifulcodes.xyz/api/v1
Authentication
We use API Keys to authenticate requests. You can view and manage your API keys in the Merchant Dashboard.
Authorization: Your-API-Key
POST
Create Payment Link
Initialize a payment request and get a payment URL to redirect your customer.
Endpoint
https://www.pay-saas.arifulcodes.xyz/api/v1/create.php
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | String | Yes | Your merchant API Key |
| order_id | String | Yes | Unique Order ID from your system |
| amount | Number | Yes | Amount to charge (BDT) |
| callback_url | URL | Yes | Redirect URL after success |
PHP Example (cURL)
$url = "https://www.pay-saas.arifulcodes.xyz/api/v1/create.php";
$data = [
'api_key' => 'YOUR_API_KEY',
'order_id' => 'ORD-1001',
'amount' => 100,
'callback_url' => 'https://yoursite.com/success.php'
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);
if ($result['status'] == 'success') {
header("Location: " . $result['payment_url']);
} else {
echo "Error: " . $result['message'];
}
GET
Check Payment Status
Verify the status of a transaction using Order ID.
https://www.pay-saas.arifulcodes.xyz/api/v1/status.php?api_key=KEY&order_id=ORD-1001
Response Example (JSON)
{
"status": "success",
"data": {
"order_id": "ORD-1001",
"payment_status": "paid",
"amount": "100.00",
"trx_id": "A1B2C3D4",
"method": "Bkash",
"time_updated": "2025-10-20 14:30:00"
}
}