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.220.43.27
Current Path : /var/www/results/bcu/ |
| Current File : /var/www/results/bcu/axis_response_live.php |
<?php
require_once 'axis/AesForJava.php';
define('ENCRYPTION_KEY', 'z@jmI2MedA^7b2Rk');
$aesJava = new AesForJava();
$_REQUEST['i'] = str_replace(' ', '+', $_REQUEST['i']);
$qStr = $aesJava->decrypt($_REQUEST['i'], ENCRYPTION_KEY, 128);
$response = explode("&", $qStr);
var_dump($response);
$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 '<pre>';
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 "<h1 style='color:green;'>Thank You. Your order status is success</h1>";
echo "<h2>Your Transaction ID for this transaction is ".$txnid.".</h2>";
echo "<h3>We have received a payment of Rs. " .$amt."</h3>";
$html="
<div class='raval_submit' style='width:241px;float:none; margin: 0 auto;' >
<span onclick=\"PrintRevaluationApplicationForm('{$productinfo}');\" style='float:left;margin-left:8px;cursor: pointer; line-height: 19px;font-size:14px;font-weight:bold;'>Click here to take a PrintOut</span>
</div>";
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 = "<p>Your payment failed</p>";
}
echo $html;
?>
|