BENGALURU CENTRAL UNIVERSITY
";
$response = array();
$servername = "97.74.228.93";
$username = "logisys3_logu";
$password = "Logisys@2106";
/*$servername = "localhost";
$username = "root";
$password = "";*/
$dbname = "logisys3_bcu";
$servername = "97.74.228.93";
$username = "logisys3_logu";
$password = "Logisys@2106";
/*$servername = "localhost";
$username = "root";
$password = "";*/
$dbname = "logisys3_bcu";
$conn = new mysqli($servername, $username, $password, $dbname);
//$conn = new mysqli($servername, $username, $password, $dbname);
for($i = 0; $i < $dataSize; $i++)
{
$information=explode('=',$decryptValues[$i]);
/*if($i==3)
$order_status=$information[1];*/
$response[$information[0]] = $information[1];
}
//var_dump($response['merchant_param3']);
if($response['order_status'] === "Success")
{
$html = "";
$update="update collfundtransfer set fpaymentremarks = '{$response['order_id']}',fpaymenttranid = '{$response['tracking_id']}',
fpaymentstatus = 'success', fpaymentdate = now()
where fid ='{$response['merchant_param3']}'";
$result=$conn->query($update);
}
else if($response['order_status'] === "Aborted")
{
$html = "";
/*for($i = 0; $i < $dataSize; $i++)
{
$information=explode('=',$decryptValues[$i]);
// echo '
Your payment was successful for Amount : {$response['amount']}
Order ID for Transaction: {$response['order_id']}
Transaction ID : {$response['tracking_id']}
Your payment was Aborted
"; } else if($response['order_status'] === "Failure") { $html = "Your payment was Failure for Amount : {$response['amount']}
Order ID for Transaction: {$response['order_id']}";
$update="update collfundtransfer set fpaymentremarks = '{$response['order_id']}',fpaymenttranid = '{$response['tracking_id']}',
fpaymentstatus = 'Failure', fpaymentdate = now()
where fid ='{$response['merchant_param3']}'";
$result=$conn->query($update);
}
else
{
$html = "
Security Error. Illegal access detected";
}
echo "
";
// echo "
'.$information[0].' | '.urldecode($information[1]).' |