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 : 52.14.49.59
<html>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="../js/register.js"></script>
<script type="text/javascript">
var $host_url = `http://${window.location.host}/admission/app.php?a=`;
function printExamApp(fregno,funivcode,ftype,femail) {
// window.location.href=$host_url + "getLogStdDet&univcode=" + funivcode + "&appno=" + fregno,
console.log(fregno,funivcode,ftype,femail);
// $host_url+"admFeeReport&app_no="+fregno+"&univcode="+funivcode+"&ftype="+ftype+"&femail="+femail;
}
</script>
<?php
ini_set('display_errors', 1);
include ("../database.php");
include("../sendsmsapiv1.php");
include ("../consts.php");
$funivcode = $_REQUEST['univcode'];
$appno = $_REQUEST['appno'];
$fregno = $_REQUEST['fregno'];
$fheadcode = $_REQUEST['fheadcode'];
$femail = $_REQUEST['femail'];
$degree = $_REQUEST['degree'];
$ftype = 'stud';
include_once('easebuzz-lib/easebuzz_payment_gateway.php');
$get_data = "select FDBNAME,FUNIVNAME,FUNIVCODE from dbname where funivcode = '{$funivcode}'";
$result1=$conn->query($get_data);
if (mysqli_num_rows($result1) > 0)
{
$dbnames = array();
while($row = mysqli_fetch_assoc($result1))
{
$dbnames[$row['FUNIVCODE']] = $row['FDBNAME'];
$univname = $row['FUNIVNAME'];
}
}
$dbname = $dbnames[$funivcode];
$servername = SERVERNAME;
$username = USERNAME;
$password = PASSWORD;
$conn = new mysqli($servername, $username, $password, $dbname);
if($funivcode =='060'){
$query = "select a.finst from adm_studfeesum s inner join adm_studfee f on f.fappno = s.fappno
inner join adm_lead a on f.fappno = a.fleadid
where s.fintno = '{$appno}'";
$result=$conn->query($query);
$pgcred = mysqli_fetch_assoc($result);
$degree = $pgcred['finst'];
}
$get_query = "select * from maspg where funivcode = '{$funivcode}'
and fbank = 'Easebuzz' and FENTTYPE = '{$degree}'";
$result1=$conn->query($get_query);
$pgcred = mysqli_fetch_assoc($result1);
$SALT = $pgcred['fworkingid'];
$easebuzzObj = new Easebuzz($MERCHANT_KEY = null, $SALT, $ENV = null);
$result = $easebuzzObj->easebuzzResponse( $_POST );
$data = json_decode($result);
if($data->data->status == 'success')
{
date_default_timezone_set('Asia/Kolkata');
$current_date = date("Y-m-d h:i:s");
$productinfo = $data->data->productinfo;
$txnid = $data->data->txnid;
$net_amount_debit = $data->data->net_amount_debit;
$query = "update adm_studfeesum set FTRANID = '{$txnid}',
FPAYTYPE = 'Easebuzz',FPAYSTATUS='success',FPAYDATE = now()
where fintno = '{$appno}'";
$result1 =$conn->query($query);
$query = "update adm_studfee set fpaid = '{$net_amount_debit}'
where fappno = '{$fregno}' and fheadcode = '{$fheadcode}'";
$result1 =$conn->query($query);
echo "<center><h1 >".$univname."</h1></center>";
echo "<div style = 'width:50%; margin:10% auto'> <h1 style='color:green;'>Thank You. Your Payment status is success</h1>";
echo "<h2>Your Transaction ID for this transaction is ".$txnid.".</h2>";
echo "<h3>We have received a payment of Rs. " . $net_amount_debit ."</h3>";
echo "<h3>Go to Home and fill application</h3>";
// $html="<button type='button' class='btn btn-primary w-10' onclick=\"getPersonal($fregno,'Pay');\" >Fill the Application</button></div>";
// echo $html;
$firstname = "Easebuzz";
$html = "<p>Your payment was successful</p>
<p>Payment ID: {$_POST['easepayid']}</p>";
$paymentid = $_POST['easepayid'];
mysqli_close($conn);
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<script src="../js/register.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");
});
});
function PrintNETBANKCertifcatepaytm(appno)
{
$host_url = "https://vskubconiaps.in/app.php?a=";
window.location.href = $host_url+"printapplicationfrom&app_no="+appno;
}
</script>
</body>
</html>
|