Current File : /home/inlingua/www/sensoriumpsychologists.com/franchise/meTrnCardStatusSuccess.php |
<?php
/**
* This Is the Kit File To Be Included For Transaction Request/Response
*/
include 'student_payment/AWLMEAPI.php';
//create an Object of the above included class
$obj = new AWLMEAPI();
/* This is the response Object */
$resMsgDTO = new ResMsgDTO();
/* This is the request Object */
$reqMsgDTO = new ReqMsgDTO();
//This is the Merchant Key that is used for decryption also
$enc_key = "2e64c689a7018c84b1cebbb111a1864a";
/* Get the Response from the WorldLine */
$responseMerchant = $_REQUEST['merchantResponse'];
$response = $obj->parseTrnResMsg( $responseMerchant , $enc_key );
?>
<?php
include_once("common/head_links.php");
?>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<?php include_once("common/header.php");?>
<?php include_once("common/left_side_bar.php");?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Payment Details
</h1>
</section>
<!-- Main content -->
<section class="content">
<!-- Info boxes -->
<div class="row">
<!--<div class="col-md-4 col-sm-6 col-xs-12">
<div class="my_welcome_box">
<h4 style="margin-left:20px;padding-top:15px;font-weight:bold;">Greetings!</h4>
<div style="margin-left:20px;font-size:1.1em;"><strong>UID :</strong> <?php echo $session_row['registration_no'];?><br>
<strong>Name :</strong> <?php echo $session_row['fname'];?> <?php echo $session_row['lname'];?> <br>
</div>
<div style="font-weight:bold;text-align:right;padding-right:20px;padding-bottom:10px;"></div>
</div>
</div>-->
<div class="col-md-1 col-sm-1 col-xs-1"></div>
<div class="col-md-8 col-sm-12 col-xs-8">
<div class="info-box">
<!--<span class="info-box-icon bg-maroon-gradient"><i class="fa fa-edge"></i></span>-->
<div class="info-box-content">
<?php
include_once('../classes/config.php');
include_once('common/session.php');
$ex_date = new DateTime("+12 months");
$ex_date1=$ex_date->format('Y-m-d');
$r=$response->getOrderId();
$id=$session_row['code'];
if (empty($r)) {
echo "<meta http-equiv=\"refresh\" content=\"1;URL=index.php\">";
} else {
extract($_REQUEST);
if(isset($response)){
$data=array(
'franchise_id' =>$session_row['franchise_id'],
'code' =>$session_row['code'],
'amount' =>$response->getTrnAmt(),
'order_no' => $response->getOrderId(),
'dd' =>$_POST['dd_no'],
'payment_mode' =>'card',
'payment_date' =>$date,
'nex_payment_date' =>$ex_date1,
'status' =>$response->getStatusDesc(),
'type' =>'3',
);
//print_r($data);die;
$update=$query->qry_insert('shristi_franchise_payments',$data);
if($update){
$fullname=$session_row['fname']." ".$session_row['lname'];
$insert1=$mail->user_register_ex_online($session_row['email'],$fullname,$session_row['email'],$response->getOrderId(),$response->getStatusDesc());
$message->success_updated();
// session_unset();
}else{
$message->error();
}
}
}
?>
<table>
<tr><!-- PG transaction reference number-->
<td><label for="txnRefNo">Transaction Ref No.</label></td>
<td><?php echo $response->getPgMeTrnRefNo();?></td>
<!-- Merchant Order ID-->
<td><label for="orderId">Order No.</label></td>
<td><?php echo $response->getOrderId();?></td>
</tr>
<tr>
<!-- Transaction Amount-->
<td><label for="txnAmt">Txn Amt</label></td>
<td><?php echo $response->getTrnAmt();?></td>
<!-- Transaction status code-->
<td><label for="txnAmt">Status Code</label></td>
<td><?php echo $response->getStatusCode();?></td>
<!-- Transaction status description-->
<td><label for="txnAmt">Status Desc</label></td>
<td><?php echo $response->getStatusDesc();?></td>
</tr>
<tr>
<td><label for="addField1">Add Field 1 :</label></td>
<td><?php echo $response->getAddField1();?></td>
<td><label for="addField2">Add Field 2 :</label></td>
<td><?php echo $response->getAddField2();?></td>
<td><label for="addField3">Add Field 3 :</label></td>
<td><?php echo $response->getAddField3();?></td>
<td><label for="addField4">Add Field 4 :</label></td>
<td><?php echo $response->getAddField4();?></td>
</tr>
<tr>
</table>
</div>
</div>
</div>
<div class="clearfix visible-sm"></div>
<!--<div class="col-md-4 col-sm-6 col-xs-12" style="margin-top:30px;">
<div class="info-box">
<span class="info-box-icon bg-purple-gradient"><strong>D</strong></span>
<div class="info-box-content">
<span class="info-box-text text-purple"><strong>D-Wallet Balance</strong></span>
<span class="info-box-number"><i class="fa fa-inr"></i>1000/-</span>
</div>
</div>
</div>-->
</div>
<!-- /.row -->
<!-- Main row -->
<!-- /.col -->
</section><!-- /.content -->
</div><!-- /.content-wrapper -->
<?php include_once("common/footer.php");?>
</div><!-- ./wrapper -->
<?php include_once("common/footer_links.php");?>
</body>
</html>
</body>
</html>