BENGALURU CENTRAL UNIVERSITY
decrypt($_REQUEST['i'], ENCRYPTION_KEY, 128); $response = explode("&", $qStr); $ridresponse = explode("=", $response[6]); $crnresponse = explode("=", $response[10]); $cid = '4349'; $rid = $ridresponse[1]; $crn = $crnresponse[1];; $ver = '1.0'; $typ = 'Test'; define('POST_URL', "https://uat-etendering.axisbank.co.in/easypay2.0/frontend/index.php/api/enquiry"); define('CHECKSUM_KEY', 'axis'); define('ENCRYPTION_KEY', 'axisbank12345678'); include_once 'axis/EasyPay.php'; $ep = new EasyPay(POST_URL,CHECKSUM_KEY,ENCRYPTION_KEY); $result = $ep->callEasyPayEnquiry($cid, $rid, $crn, $ver, $typ); //echo '
';
	//print_r($result);

	$response = explode("&", $result);
	//var_dump($response);
	$appresponse = explode("=", $response[4]);
	$trnresponse = explode("=", $response[10]);
	$stcresponse = explode("=", $response[8]);
	$amtresponse = explode("=", $response[7]);

	$productinfo = $appresponse[1];
	$txnid = $trnresponse[1];
	$stc = $stcresponse[1];
	$amt = $amtresponse[1];

	if($stc == '000')
	{
	
		$servername = "97.74.228.93";
		$username = "logisys3_logu";
		$password = "Logisys@2106";
		$dbname = "logisys3_bcu";

		$conn = new mysqli($servername, $username, $password, $dbname);

		$update="update collfundtransfer set fpaymentremarks = '{$result}',fpaymenttranid = '{$txnid}', 
		fpaymenttype = 'axis',forderid = '{$txnid}',
	    fpaymentstatus = 'success', fpaymentdate = now()
	    where fid ='{$productinfo}'";
	  //  var_dump($update);
		$result=$conn->query($update);


  		$html = "";
        echo "

Thank You. Your order status is success

"; echo "

Your Transaction ID for this transaction is ".$txnid.".

"; echo "

We have received a payment of Rs. " . $amt."

"; }else { $html = "

Your payment failed

"; } echo $html; ?>