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.118.1.100
Current Path : /var/www/results/bcu/ |
| Current File : /var/www/results/bcu/sampleEasyPay.php |
<?php
/* Its sample request please change below hard coded values and call sendEasyPayRequest function */
var_dump(dirname($_SERVER['HTTP_HOST'].'--'.$_SERVER["PHP_SELF"]));
die();
$appno = $_GET['productinfo'];
$funivcode = $_GET['funivcode'];
$servername = "97.74.228.93";
$username = "logisys3_logu";
$password = "Logisys@2106";
/*$servername = "localhost";
$username = "root";
$password = "";*/
$dbname = "logisys3_comexam";
$conn = new mysqli($servername, $username, $password, $dbname);
$get_data = "select * from dbname where ifnull(fdeleted,'') <> 'T'";
$result1=$conn->query($get_data);
if (mysqli_num_rows($result1) > 0)
{
// output data of each row
$dbnames = array();
while($row = mysqli_fetch_assoc($result1))
{
$dbnames[$row['FUNIVCODE']] = $row['FDBNAME'];
}
}
mysqli_close($conn);
$servername = "97.74.228.93";
$username = "logisys3_logu";
$password = "Logisys@2106";
/*$servername = "localhost";
$username = "root";
$password = "";*/
$dbname = $dbnames[$funivcode];
$conn = new mysqli($servername, $username, $password, $dbname);
$get_data = "select cs.fregno as fregno, IFNULL(cs.FTOTAL,0) as ftotalfee,
control.funivname,pdf_logo_path, '999999999' as fmobileno
,'99999' as fname,'999999@gmail.com' as femail
from control, res_stud cs
inner join college c on cs.fcollcode = c.fcollcode
where appno = '{$appno}'";
$result=$conn->query($get_data);
if (mysqli_num_rows($result) > 0)
{
// output data of each row
while($row = mysqli_fetch_assoc($result))
{
$fregno = $row['fregno'];
$ftotalfee = $row['ftotalfee'];
$fname = $row['fname'];
$fmobileno = $row['fmobileno'];
$femail = $row['femail'];
$funivname = $row['funivname'];
$logo = $row['pdf_logo_path'];
}
}
$cid = '4349';
$number = rand(10000001,99999999);
$crn = '1';
$amt = number_format($ftotalfee,2,'.','');
$ver = '1.0';
$typ = 'Test';
$cny = 'INR';
$rtu = 'http://oasis.logisys.org/bcu/axis_response.php';
$ppi = $appno."|".$fregno."|".$appno."|".$fname."|".$femail."|".number_format($ftotalfee,2,'.','');
$re1 = 'MN';
$re2 = $fregno;
$re3 = $appno;
$re4 = $fname;
$re5 = $femail;
define('POST_URL', "https://uat-etendering.axisbank.co.in/easypay2.0/frontend/index.php/api/payment");
define('CHECKSUM_KEY', 'axis');
define('ENCRYPTION_KEY', 'axisbank12345678');
include_once 'EasyPay.php';
$ep = new EasyPay(POST_URL,CHECKSUM_KEY,ENCRYPTION_KEY);
$ep->sendEasyPayRequest($cid, $rid, $crn, $amt, $ver, $typ, $cny, $rtu, $ppi, $re1, $re2, $re3, $re4, $re5);
|