UpiFast Payments API Documentation
This API allows you to create and manage UPI PayIN transactions using the UpiFast platform.
1️⃣ Endpoint PayIN API
POST
https://upifast.xyz/api/create-order
Request Parameters
| Parameter | Type |
| customer_mobile | integer |
| customer_name | string |
| user_token | string |
| amount | float |
| order_id | string |
| redirect_url | url |
| remark1 | string |
| remark2 | string |
2️⃣ Example – Create PayIN Request
<?php
$api_url = 'https://upifast.xyz/api/create-order';
$post_data = [
'customer_mobile' => '8145344963',
'customer_name' => 'Your Name',
'user_token' => 'your_api_key',
'amount' => '1',
'order_id' => '8787772321800',
'redirect_url' => 'https://upifast.xyz/success',
'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));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
Response (Success)
{
"status": true,
"message": "Order Created Successfully",
"result": {
"orderId": "123456170547510",
"payment_url": "https://upifast.xyz/payment/MTIzNDU2"
}
}
Response (Error)
{
"status": false,
"message": "Your Plan Expired Please Renew"
}
3️⃣ Endpoint for PayIN Status
POST
https://upifast.xyz/api/check-order-status
| Parameter | Type |
| user_token | string |
| order_id | string |
4️⃣ Example – Check PayIN Status
<?php
$api_url = 'https://upifast.xyz/api/check-order-status';
$post_data = [
'user_token' => 'your_api_key',
'order_id' => '8787772321800'
];
$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));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
5️⃣ 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'];
}
?>