File size: 1.27Kb
<?php
include '../db.php';
include '../functions.php';
headtag("$SiteName - Check Recharge Status");
if($adminlog==1){
$rcid=formget("id");
echo '<div class="title">Recharge Status <font color="red">#'.$rcid.'</font></div>';
$get=mysql_fetch_array(mysql_query("SELECT rcorderid FROM invoice WHERE id='$rcid'"));
$rcorderid=$get["rcorderid"];
$arshad='http://api.rechapi.com/api_status.php?format=text&token=MtPfKCvSLEENx1Pjv5V4OlJ9smYmOg&orderId='.$rcorderid.'';
$cha = curl_init($arshad);
curl_setopt($cha, CURLOPT_RETURNTRANSFER, true);
curl_setopt($cha, CURLOPT_HEADER, 0);
$str = curl_exec($cha);
curl_close($cha);
$respone=explode("|",$str);
$orderid=$respone[0];
$status=$respone[1];
$mobile=$respone[2];
$amount=$respone[3];
$txnid=$respone[5];
echo '<div class="ad"><b>Invoice ID:</b> #'.ucwords($rcid).'</div>
<div class="ad"><b>Order ID:</b> '.$rcorderid.'</div>
<div class="ad"><b>Amount:</b><b id="num">'.$amount.' Rs</b></div>
<div class="ad"><b>Mobile:</b> '.$mobile.'</div>
<div class="ad"><b>Txn ID:</b> '.$txnid.'</div>
<div class="ad"><b>Status:</b> '.$status.' <a href="disputerc.php?id='.$rcid.'"><b>Dispute</b></a></div>';
echo '<a href="index.php?goto=home"><div class="ua"><b>HOME</b></div></a>';
include '../foot.php';
}
else {
header('Location:login.php');
}
?>