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.216.126.33
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>Admin | Parikshamitra</title>
<!-- Favicon-->
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
<link href="plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!-- Bootstrap Core Css -->
<link href="plugins/bootstrap/css/bootstrap.css" rel="stylesheet">
<!-- Waves Effect Css -->
<link href="plugins/node-waves/waves.css" rel="stylesheet" />
<!-- Animation Css -->
<link href="plugins/animate-css/animate.css" rel="stylesheet" />
<!-- Wait Me Css -->
<link href="plugins/waitme/waitMe.css" rel="stylesheet" />
<!-- Custom Css -->
<link href="css/style.css" rel="stylesheet">
<!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->
<link href="css/themes/all-themes.css" rel="stylesheet" />
<script>
$(function(){
});
</script>
</head>
<body class="theme-cyan" >
<!-- Page Loader -->
<div class="page-loader-wrapper">
<div class="loader">
<div class="preloader">
<div class="spinner-layer pl-red">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
<p>Please wait...</p>
</div>
</div>
<!-- #END# Page Loader -->
<!-- Top Bar -->
<nav class="navbar">
<div class="container-fluid">
<div class="navbar-header">
<a href="javascript:void(0);" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false"></a>
<a href="javascript:void(0);" class="bars"></a>
<!--<a href="javascript:void(0);"><img class="navbar-brand" src='images/logo.png' style="height: 57px !important;width: 80px !important" /></a>-->
<!--<a href="javascript:void(0);" class="navbar-brand" style="height: 70px !important;width: 100% !important; align-self: center;padding-left: 350px" />KUVEMPU UNIVERSITY<br>PARIKSHAMITRA ADMIN</a>-->
<h2 class="nhdr m-t--5">KUVEMPU UNIVERSITY</h2>
<h3 class="nhdr2 m-t--5 m-b--5">PARIKSHAMITRA ADMIN</h3>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<!-- Call Search -->
<li><a>Welcome <span id = "masuser"></span></a></li>
<!-- #END# Call Search -->
<li><a href="javascript:void(0);" onclick="logout()"><i class="fa fa-sign-out fa-lg" aria-hidden="true"></i>Sign Out</a></li>
</ul>
</div>
</div>
</nav>
<!-- #Top Bar -->
<section>
<!-- Left Sidebar -->
<aside id="leftsidebar" class="sidebar">
<!-- Menu -->
<div class="menu">
<ul class="list">
<li class="active p-t-20">
<a onclick="loadappstatus()">
<span>Application Status</span>
</a>
</li>
<li >
<a onclick="loadappform()">
<span>Application Form</span>
</a>
</li>
<li id = "user">
<a onclick="loadCreateUser()">
<span>Create User</span>
</a>
</li>
</ul>
</div>
<!-- #Menu -->
</aside>
<!-- #END# Left Sidebar -->
</section>
<section class="content">
<div class="container-fluid">
<div class="tab-content" id="loadtab">
<?php
// following files need to be included
require_once("./lib/config_paytm.php");
require_once("./lib/encdec_paytm.php");
$paytmChecksum = "";
$paramList = array();
$isValidChecksum = "FALSE";
$servername = "97.74.228.93";
$username = "logisys3_logu";
$password = "Logisys@2106";
$dbname = "logisys3_kus";
$conn = new mysqli($servername, $username, $password, $dbname);
$paramList = $_POST;
$paytmChecksum = isset($_POST["CHECKSUMHASH"]) ? $_POST["CHECKSUMHASH"] : ""; //Sent by Paytm pg
//Verify all parameters received from Paytm pg to your application. Like MID received from paytm pg is same as your application?s MID, TXN_AMOUNT and ORDER_ID are same as what was sent by you to Paytm PG for initiating transaction etc.
$isValidChecksum = verifychecksum_e($paramList, 'CC_cHhDZDqzUskbQ', $paytmChecksum); //will return TRUE or FALSE string.
if($isValidChecksum == "TRUE")
{
$status = $_POST["STATUS"];
echo $status;
$orderid = $_POST["ORDERID"];
$productinfo = $_POST["MERC_UNQ_REF"];
$txnid = $_POST["TXNID"];
$MID = $_POST["MID"];
$CHECKSUMHASH = $_POST["CHECKSUMHASH"];
echo $productinfo;
//$productinfo = '103E3050155';
$MID = 'KuvUni77420253992631';
$requestParamList = array();
$responseParamList = array();
$requestParamList = array("MID" => "{$MID}" , "ORDERID" => "{$orderid}", "MERC_UNQ_REF" => "{$productinfo}");
$checkSum = getChecksumFromArray($requestParamList,'CC_cHhDZDqzUskbQ');
$requestParamList['CHECKSUMHASH'] = urlencode($checkSum);
$data_string = "JsonData=".json_encode($requestParamList);
$ch = curl_init(); // initiate curl
//$url = "https://pguat.paytm.com/oltp/HANDLER_INTERNAL/getTxnStatus?"; // where you want to post data
$url = "https://secure.paytm.in/oltp/HANDLER_INTERNAL/getTxnStatus?"; // where you want to post data
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, true); // tell curl you want to post something
curl_setopt($ch, CURLOPT_POSTFIELDS,$data_string); // define what you want to post
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // return the output in string format
$headers = array();
$headers[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$output = curl_exec($ch); // execute
$info = curl_getinfo($ch);
$data = json_decode($output, true);
if ($data["STATUS"] == "TXN_SUCCESS")
{
$status = $data["STATUS"];
$productinfo = $data["ORDERID"];
$txnid = $data["TXNID"];
$MID = $data["MID"];
$CHECKSUMHASH = $data["CHECKSUMHASH"];
$txnid = $data['TXNID'];
$firstname = 'Paytm';
$status = $data["STATUS"];
$ORDERID = $data["ORDERID"];
$productinfo = $data["MERC_UNQ_REF"];
$txnid = $data["TXNID"];
$MID = $data["MID"];
$CHECKSUMHASH = $data["CHECKSUMHASH"];
$txnid = $data['TXNID'];
$firstname = 'Paytm';
echo "<h1 style='color:green;'>Thank You. Your order status is success</h1>";
echo "<h2>Your Transaction ID for this transaction is ".$data['TXNID'].".</h2>";
echo "<h3>We have received a payment of Rs. " . $data['TXNAMOUNT'] ."</h3>";
$html="
<div class='raval_submit' style='width:241px;float:none; margin: 0 auto;' >
<button onclick=\"PrintNETBANKCertifcate('{$productinfo}');\" style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Click here to take a PrintOut</button>
</div>";
echo $html;
$update = "update servtran set fpayremarks='{$txnid}',fpaystatus='success',
ftranid='{$ORDERID}', fpaydate = current_date()
where fappno = '{$productinfo}'";
//var_dump($update);
$result=$conn->query($update);
//}
}
else
{
echo "<b>Transaction status is failure</b>" . "<br/>";
}
}
else
{
echo "<b>Checksum mismatched.</b>";
//Process transaction as suspicious.
}
?>
</div>
</div>
</section>
<script src="js/appForm.js"></script>
<script src="js/control.js"></script>
<script src="js/validate.js"></script>
<script src="js/MainPage.js"></script>
<!-- Jquery Core Js -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap Core Js -->
<script src="plugins/bootstrap/js/bootstrap.js"></script>
<!-- Select Plugin Js -->
<script src="plugins/bootstrap-select/js/bootstrap-select.js"></script>
<!-- Slimscroll Plugin Js -->
<script src="plugins/jquery-slimscroll/jquery.slimscroll.js"></script>
<!-- Waves Effect Plugin Js -->
<script src="plugins/node-waves/waves.js"></script>
<!-- Autosize Plugin Js -->
<script src="js/form_submit.js"></script>
<!-- Input Mask Plugin Js -->
<script src="plugins/jquery-inputmask/jquery.inputmask.bundle.js"></script>
<!-- Custom Js -->
<script src="js/admin.js"></script>
<script src="js/appStatus.js"></script>
<!-- Demo Js -->
<script src="js/demo.js"></script>
<script type="text/javascript">
$(function() {
$("li").click(function() {
// remove classes from all
$("li").removeClass("active");
// add class to the one we clicked
$(this).addClass("active");
});
});
</script>
</body>
</html>
|