- +91 7908099219
- hello@easypaygateway.in
This API allows you to create a PayIN Request using the platform.
Parameter | Type |
---|---|
customer_mobile | Integer |
user_token | string |
amount | float |
order_id | string |
redirect_url | url |
remark1 | string |
remark2 | string |
route | integer |
Parameter | Description |
---|---|
Content-Type | Form-Encoded Payload (application/x-www-form-urlencoded) |
Field | Type | Description |
---|---|---|
status | boolean | API request status. |
result | object | Details of successful request. |
payment_url | string | URL for processing payment. |
message | string | Description of request result. |
'8145344963',
'user_token' => '9856ce42fc26349fe5fab9c6b630e9c6',
'amount' => '1',
'order_id' => '8787772321800',
'redirect_url' => 'https://merchant.easypaygateway.in',
'remark1' => 'testremark',
'remark2' => 'testremark2',
'route' => '1' // route 2 is for VIP users, route 1 is for normal users
];
// Initialize cURL session
$ch = curl_init($api_url);
// Set cURL options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data)); // to format POST data
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/x-www-form-urlencoded'
]);
// Execute the cURL session and capture the response
$response = curl_exec($ch);
// Check for cURL errors
if (curl_errno($ch)) {
echo 'cURL Error: ' . curl_error($ch);
} else {
echo $response;
}
// Close the cURL session
curl_close($ch);
?>
{
"status": true,
"message": "Order Created Successfully",
"result": {
"orderId": "1234561705047510",
"payment_url": "https://merchant.easypaygateway.in/payment/MTIzNDU2MTc"
}
}
{
"status": false,
"message": "Your Plan Expired Please Renew"
}
If the status in the response is error, check the message field for details on the issue.
POST https://merchant.easypaygateway.in/api/check-order-status
Parameter | Type | Description |
---|---|---|
user_token | string | The API Key. |
order_id | string | AlphaNumeric. |
Parameter | Description |
---|---|
Content-Type | Form-Encoded Payload (application/x-www-form-urlencoded) |
Field | Type | Description |
---|---|---|
status | boolean | API request success status. |
message | string | API result message. |
result | object | Details of transaction. |
txnStatus | string | Transaction status. |
orderId | string | Order ID. |
amount | string | Transaction amount. |
date | string | Transaction time. |
utr | string | UTR Number. |
'9856ce42fc26349fe5fab9c6b630e9c6',
'order_id' => '8787772321800'
];
// Initialize cURL session
$ch = curl_init($api_url);
// Set cURL options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data)); // to format POST data
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/x-www-form-urlencoded'
]);
// Execute the cURL session and capture the response
$response = curl_exec($ch);
// Check for cURL errors
if (curl_errno($ch)) {
echo 'cURL Error: ' . curl_error($ch);
} else {
echo $response;
}
// Close the cURL session
curl_close($ch);
?>
{
"status": true,
"message": "Transaction Successfully",
"result": {
"txnStatus": "SUCCESS", //For Pending PENDING
"orderId": "784525sdD",
"amount": "1",
"date": "2024-01-12 13:22:08",
"utr": "454525454245" //only when success
}
}
{
"status": false,
"message": "Error Message",
}
Copyright © 2024 – All rights reserved.