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.145.73.167
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="pragma" content="no-cache" />
<title>Examination Automation</title>
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<!-- css files-->
<link rel="shortcut icon" type="image/jpg" href="../images/tarka_favicon.jpg" />
<link rel="stylesheet" type="text/css" href="../css/main.css" />
<link rel="stylesheet" type="text/css" href="../css/loginpage.css" />
<!-- <link rel="stylesheet" type="text/css" href="css/jquery.alerts.css" /> -->
<link rel="stylesheet" type="text/css" href="../JQGrid3.5/css/jquery-ui-1.7.2.custom.css" />
<!--javascript files-->
<script type="text/javascript" src="../js/checkbrowser.js"></script>
<script type="text/javascript" src="../JQGrid3.5/js/jquery-1.3.2.js"></script>
<!-- <script type="text/javascript" src="JQGrid3.5/js/jquery-ui-1.7.2.custom.min.js"></script> -->
<script type="text/javascript" src ="../js/index.js?v=21092018" ></script>
<script type="text/javascript" src ="../js/affliation_fee.js" ></script>
<!-- Bootstrap Core Css -->
<link href="https://universitysolutions.in/bcu/adm/plugins/bootstrap/css/bootstrap.css" rel="stylesheet" />
<!-- Waves Effect Css -->
<link href="https://universitysolutions.in/bcu/adm/plugins/node-waves/waves.css" rel="stylesheet" />
<!-- Custom Css -->
<link href="https://universitysolutions.in/bcu/adm/css/style_adm.css" rel="stylesheet" />
<!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->
<link href="https://universitysolutions.in/bcu/adm/css/themes/all-themes.css" rel="stylesheet" />
<script src="../libs/jquery.jclock-1.2.0.js.txt" type="text/javascript"></script>
<!-- <script type="text/javascript" src="js/base_file/spinner.js"></script> -->
<script type="text/javascript">
/*
$(function(){
// Dialog
$('#dialog').dialog({
autoOpen: false,
modal: true,
width: 600,
buttons: {
"Ok": function() {
$(this).dialog("close");
},
"Cancel": function() {
$(this).dialog("close");
}
}
});
});
*/
$(function($) {
$('.jclock').jclock();
});
</script>
</head>
<body>
<div class="mainbody" align="center">
<!-- Header div part-->
<div class="header">
<div class="header-top">
<div class="logo" align="left"></div>
<div class="headerDetails" align="right">
<div class="tarka-site">
</div>
</div>
</div>
<div class="header-bottom">
<div style="float:left;"></div>
<div class="package" style="margin-left:2px;" ><span id='university_name'>VIJAYANAGARA SRI KRISHNADEVARAYA UNIVERSITY, BALLARI</span></div>
<div class="MainMenu" id="system_menu"></div>
</div>
<div id='tarka_menu_html_div' style="display:none"> </div>
</div>
<!-- End Header div part-->
<!--Main Contents Div -->
<div class="contents">
<div class="loginpage_main__div">
<?php
require('razorpay/config.php');
@session_start();
require('razorpay/razorpay-php/Razorpay.php');
use Razorpay\Api\Api;
use Razorpay\Api\Errors\SignatureVerificationError;
$success = true;
$error = "Payment Failed";
if (empty($_POST['razorpay_payment_id']) === false)
{
$api = new Api($keyId, $keySecret);
try
{
// Please note that the razorpay order ID must
// come from a trusted source (session here, but
// could be database or something else)
$attributes = array(
'razorpay_order_id' => $_SESSION['razorpay_order_id'],
'razorpay_payment_id' => $_POST['razorpay_payment_id'],
'razorpay_signature' => $_POST['razorpay_signature']
);
// var_dump($attributes);
$api->utility->verifyPaymentSignature($attributes);
//var_dump($api);
}
catch(SignatureVerificationError $e)
{
$success = false;
$error = 'Razorpay Error : ' . $e->getMessage();
}
}
//pay_BM9pU1wNQgNrzY
if ($success === true)
{
$html = "<p>Your payment was successful</p>
<p>Payment ID: {$_POST['razorpay_payment_id']}</p>";
// use Razorpay\Api\Api;
$paymentid = $_POST['razorpay_payment_id'];
//var_dump($paymentid);
// $api = new Api('rzp_live_iYQ3SLutKynW4L', 'SyKRchEkWWDxu2gC6uajyNUH');
$api = new Api($keyId, $keySecret);
$payment = $api->payment->fetch("{$paymentid}");
include("/var/www/config.php");
$servername = SERVERNAME;
$username = USERNAME;
$password = PASSWORD;
$dbname = "logisys3_vku";
$conn = new mysqli($servername, $username, $password, $dbname);
$status = "success";
$productinfo = $payment->notes->appno;
$txnid = $payment->id;
$payment['TXNAMOUNT'] = ((float)$payment->amount/100);
$firstname = 'razorpay';
echo "<h2>Your Transaction ID for this transaction is ".$txnid.".</h2>";
echo "<h3>We have received a payment of Rs. " . $payment['TXNAMOUNT'] ."</h3>";
$html = "";
$html="
<div class='m-l-10 btn btn-primary waves-effect btn' >
<span onclick=\"rptviewaff('{$productinfo}');\" style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Click here to take a PrintOut</span>
</div>";
echo $html;
$html = "";
$update="update affliation_sum set ftransactionid = '{$txnid}',
fpaymentstatus = 'success', ftransactiondate = now()
where fsaffid ='{$productinfo}'";
$result=$conn->query($update);
}
else
{
$html = "<p>Your payment failed</p>
<p>{$error}</p>";
}
echo $html;
?>
</div>
</body>
</html>
|