INTEGRATION

Transaction Status


End Point URL /validate.do
Method GET
Function Requests data from a resource by get method
Remark 2 mandatory parameter only (Website API Token + (Transaction ID or Order ID))

Parameter Description
api_token (required) Website API Token is a string value.
transaction_id (required) Transaction ID,an integer and you will use it to login to the merchant dashboard. You will find it at the "Transactions List" page. You may find merchant login by following View All Transaction → Transaction Id.
Important - Mandatory any one from Transaction ID or Order ID.
id_order (required) Your order ID, if it was provided.
Important - Mandatory any one from Transaction ID or Order ID.

Example of Transaction Status:

//<!--Transaction Status by get method-->
$url= "/validate.do?transaction_id=20170928115044&api_token=MjZfMTEyMF8yMDE4MDcyNzEyMjgyNQ" ;
$ch = curl_init() ;
curl_setopt($ch,CURLOPT_URL, $url) ;
curl_setopt($ch,CURLOPT_POST,0) ;
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1) ;
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false) ;
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, false) ;
$response = curl_exec($ch) ;
curl_close($ch) ;
$json_response = json_decode($response,true) ;
echo $json_response[ 'status_nm' ] ;
echo $json_response[ 'status' ] ;
echo $json_response[ 'amount' ] ;
echo $json_response[ 'transaction_id' ] ;
echo $json_response[ 'descriptor' ] ;
echo $json_response[ 'tdate' ] ;
echo $json_response[ 'curr' ] ;
echo $json_response[ 'reason' ] ;
echo $json_response[ 'id_order' ] ;
//<!--Transaction Status for data you will get below response:-->
{
"status_nm" : "1" ,
"status" : "Success" ,
"amount" : "30.00" ,
"transaction_id" : "20170928115044" ,
"descriptor" : "PayCly" ,
"tdate" : "2017-09-28 11:50:44" ,
"curr" : "USD" ,
"reason" : "Success" ,
"id_order" : "" ,
}

Example of Transaction Status

{
"status": Success | Failed | Pending | Test
}