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.23.103.14


Current Path : /var/www/results/bcu_check/axis/
Upload File :
Current File : /var/www/results/bcu_check/axis/sampleEasyPay.php

<?php

/* Its sample request please change below hard coded values and call sendEasyPayRequest function */

    
$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';
$rid = rand(10000001,59999999);
$crn = rand(60000001,99999999);
$amt = number_format($ftotalfee,2,'.','');
$ver = '1.0';
$typ = 'Test';
$cny = 'INR';
$rtu = 'http://results.logisys.org/bcu_check/axis_response.php';
$ppi = $appno."|".$fregno."|".$appno."|".$fname."|".$femail."|".number_format($ftotalfee,2,'.','');
$re1 = 'MN';
$re2 = $fregno;
$re3 = $appno;
$re4 = $fname;
$re5 = $femail;

//var_dump($cid.' - '.$rid.' - '.$crn.' - '.$amt.' - '.$ver.' - '.$typ.' - '.$cny.' - '.$rtu.' - '.$ppi.' - '.$re1.' - '.$re2.' - '.$re3.' - '.$re4.' - '.$re5);

//define('POST_URL', "https://easypay.axisbank.co.in/index.php/api/payment");
// define('CHECKSUM_KEY', 'bwYM');
// define('ENCRYPTION_KEY', 'z@jmI2MedA^7b2Rk');
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);
//var_dump($ep);
//var_dump($cid,$rid, $crn, $amt, $ver, $typ, $cny, $rtu, $ppi, $re1, $re2, $re3, $re4, $re5);

$ep->sendEasyPayRequest($cid, $rid, $crn, $amt, $ver, $typ, $cny, $rtu, $ppi, $re1, $re2, $re3, $re4, $re5);