decrypt($_REQUEST['i'], ENCRYPTION_KEY, 128); $response = explode("&", $qStr); $ridresponse = explode("=", $response[6]); $crnresponse = explode("=", $response[10]); $cid = '4505'; $rid = $ridresponse[1]; $crn = $crnresponse[1];; $ver = '1.0'; $typ = 'PRD'; // define('POST_URL', "https://uat-etendering.axisbank.co.in/easypay2.0/frontend/index.php/api/enquiry"); // define('CHECKSUM_KEY', 'axis'); // define('ENCRYPTION_KEY', 'axisbank12345678'); // var_dump("CID : ".$cid.'; RID : '.$rid."; CRN : ".$crn."; VER : ".$ver."; TYP : ".$typ); define('POST_URL', "https://easypay.axisbank.co.in/index.php/api/enquiry"); define('CHECKSUM_KEY', 'bwYM'); define('ENCRYPTION_KEY', 'z@jmI2MedA^7b2Rk'); 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);






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

"; $html="
Click here to take a PrintOut
"; echo $html; $html = ""; $update="update res_stud set FPAYMENTREMARKS='{$txnid}',FPAYMENTSTATUS='success', FPAYMENTCONFIRM='success', fackdate = current_date(), funivrecdate = current_date(), fackuser = 'axis', FCHALLANNO = '{$stc}' where APPNO='{$productinfo}'"; // $result=$conn->query($update); }else { $html = "

Your payment failed

"; } echo $html; ?>