Code Copied Successfully

IndiaPe API Documentation

Professional payment gateway API documentation with automatic domain detection system from database configuration.

REST API JSON AUTO DOMAIN SECURE FAST
💳 Endpoint PayIN API
POST
https://indiape.ikwb.com/api/create-order
Parameter Type Description
customer_mobile Integer Customer mobile number
user_token String Merchant API token
amount Float Payment amount
order_id String Unique order ID
redirect_url URL Redirect URL
remark1 String Custom remark
remark2 String Custom remark 2
<?php

$api_url = 'https://indiape.ikwb.com/api/create-order';

$post_data = [
    'customer_mobile' => '8145344963',
    'user_token' => 'YOUR_API_KEY',
    'amount' => '100',
    'order_id' => 'ORD123456',
    'redirect_url' => 'https://indiape.ikwb.com/success.php',
    'remark1' => 'testremark',
    'remark2' => 'testremark2'
];

$ch = curl_init($api_url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));

curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Content-Type: application/x-www-form-urlencoded'
]);

$response = curl_exec($ch);

if (curl_errno($ch)) {

    echo 'cURL Error: ' . curl_error($ch);

} else {

    echo $response;

}

curl_close($ch);

?>
📡 Endpoint for PayIN Status
POST
https://indiape.ikwb.com/api/check-order-status
Parameter Type Description
user_token String Merchant API token
order_id String Unique order ID
<?php

$api_url = 'https://indiape.ikwb.com/api/check-order-status';

$post_data = [
    'user_token' => 'YOUR_API_KEY',
    'order_id' => 'ORD123456'
];

$ch = curl_init($api_url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));

curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Content-Type: application/x-www-form-urlencoded'
]);

$response = curl_exec($ch);

if (curl_errno($ch)) {

    echo 'cURL Error: ' . curl_error($ch);

} else {

    echo $response;

}

curl_close($ch);

?>
✅ Response (Success)
{
    "status": true,
    "message": "Transaction Successfully",
    "result": {
        "txnStatus": "SUCCESS",
        "orderId": "ORD123456",
        "amount": "100",
        "date": "2026-05-23 13:22:08",
        "utr": "454525454245"
    }
}
❌ Response (Error)
{
    "status": false,
    "message": "Error Message"
}
🔔 Example - Webhook Response
<?php

if ($_SERVER['REQUEST_METHOD'] === 'POST') {

    $status = $_POST['status'];
    $order_id = $_POST['order_id'];
    $customer_mobile = $_POST['customer_mobile'];
    $amount = $_POST['amount'];
    $remark1 = $_POST['remark1'];
    $remark2 = $_POST['remark2'];

    // Process webhook data here

} else {

    http_response_code(405);

    echo 'Only POST requests are allowed';

}

?>