Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.119.19.206
Current Path : /var/www/html/convocation/ |
| Current File : /var/www/html/convocation/payment_gate_way_responce.php |
<?php
require_once("links/header.php");
?>
<div class="page-container" style='margin-top:111px;'>
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
<div class="page-content">
<?php
require_once(dirname(__FILE__)."/cconfig.php");
ini_set("display_errors","On");
error_reporting(E_ALL ^ E_NOTICE^ E_WARNING);
require_once("cconfig.php");
$aobj_context=CConfig::CreateNewDbContext();
$status=$_POST["status"];
$firstname=$_POST["firstname"];
$amount=$_POST["amount"];
$txnid=$_POST["txnid"];
$posted_hash=$_POST["hash"];
$key=$_POST["key"];
$productinfo=$_POST["productinfo"];
$email=$_POST["email"];
$salt = "6nUQgBjF";
$remarks="";
foreach($_POST as $ak=>$av)
{
$remarks.="{$ak} => ".addslashes($av)." \n";
}
$update="update dctran set FPAYREMARKS='{$remarks}',
FPAYSTATUS='{$status}',FPAYDATE=now(),FTRANID='{$txnid}'
where FAPPNO='{$productinfo}'";
$lobj_update = $aobj_context->mobj_db->Execute($update);
If(isset($_POST["additionalCharges"]))
{
$additionalCharges=$_POST["additionalCharges"];
$retHashSeq = $additionalCharges.'|'.$salt.'|'.$status.'|||||||||||'.$email.'|'.$firstname.'|'.$productinfo.'|'.$amount.'|'.$txnid.'|'.$key;
}
else
{
$retHashSeq = $salt.'|'.$status.'|||||||||||'.$email.'|'.$firstname.'|'.$productinfo.'|'.$amount.'|'.$txnid.'|'.$key;
}
$hash = hash("sha512", $retHashSeq);
if ($hash != $posted_hash)
{
echo "<h1 style='color:red;'>Invalid Transaction. Please try again";
}
else
{
$get_data=" select femail, fmobile,fpaystatus from dctran
where FAPPNO ='{$productinfo}' limit 1";
$lobj_get_data=$aobj_context->mobj_db->GetRow($get_data);
if($lobj_get_data[fpaystatus] == 'success')
{
echo " <div class='col-xs-9 center-block' style='float:none;margi:0 auto;'> <h1 style='color:green;'>Thank You. Your payment status is ". $status ."</h1>";
echo "<h2>Your Transaction ID for this transaction is ".$txnid.".</h2>";
echo "<h3>We have received a payment of Rs. " . $amount ."</h3>";
$html='<button class="btn blue" onclick=\'CMS.PrintNETBANKCertifcate("'.$productinfo.'");\' type="button"><i class="fa fa-download"></i> Print Acknowledgement</button>';
$html.='</div> ';
echo $html;
}
else
{
echo "<div id='table_left_div' style='background:#fff;'><div style='height:450px;'><h1 style='color:red;'>Transaction " .$lobj_get_data[fpaystatus]. " Please try again</h1></div></div>";
}
}
?>
<!-- PF Transfer out-Print Reports Popup Starts-->
</div>
</div>
<!-- END CONTENT -->
</div>
<!-- END CONTAINER -->
<?php
require_once("links/footer.php");
?>
|