HandleResponse

[insert php]

//https://api.juspay.in/order_status?orderId=825010829&merchantId=phptest
//Get the order Id
// $request_headers = array(
// “version:2018-08-01”);
$orderId = $_GET[“order_id”];
$merchantId = “xavier_test”;
//$version=”2018-08-01″;

$ch = curl_init(‘https://axisbank.juspay.in/order_status’);

curl_setopt($ch, CURLOPT_POSTFIELDS ,array(‘orderId’ => $orderId , ‘merchantId’ => $merchantId ));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERPWD, ‘C2AB5C66BD9D4FC58E9FE2003C7A5865’);
//curl_setopt($ch, CURLOPT_HTTPHEADER, $request_headers );

//get the json response
//$jsonResponse = json_decode( curl_exec($ch) );
$result = curl_exec($ch);
curl_close($ch);
//$result = json_decode($result,TRUE);
//return $result;
echo “

";
print_r($result);
exit;

[/insert php]