Current File : /home/inlingua/www/sensoriumpsychologists.com/student/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-12 col-sm-12 col-xs-12">
              <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("+7 months");
$ex_date1=$ex_date->format('Y-m-d');
$r=$response->getOrderId();
$id=$session_row['registration_no'];
if (empty($r)) {
   echo "<meta http-equiv=\"refresh\" content=\"5;URL=index.php\">";
  } else {
   
extract($_REQUEST);
if(isset($response)){
$data=array(
	'student_id'	=>$session_row['student_id'],
	'student_code'	=>$session_row['registration_no'],
	'payment_mode'	=>'Card',
	'order_number'	=>$response->getOrderId(),
	'ref_no'		=>$response->getPgMeTrnRefNo(),
	'amount'		=>$response->getTrnAmt(),
	'status'		=>$response->getStatusDesc(),
	'type'			=>'3',
	'paymet_date'	=>$date,
	'next_due_date'	=>$ex_date1,
	);	
	//print_r($data);die;
	$update=$query->qry_insert('shristi_students_payment',$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 class="student table table-striped">
<tr> 
<td colspan="11"> <h1>Payment Details</h1></td></tr>
<tr >
	<th>Rgistration Number</th>
    <th>Order No.</th>
    <th>Txn Amt</th>
    <th>Status Code</th>
    <th>Status Desc</th>
    
</tr>

<tr >
    <td> <?php echo $response->getPgMeTrnRefNo();?> </td>     
     <td><?php echo $response->getOrderId();?> </td>
    <td><?php echo $response->getTrnAmt();?></td>
    <td><?php echo $response->getStatusCode();?></td>
    <td><?php echo $response->getStatusDesc();?></td>
    
    </tr>

</table>
   

                </div>

              </div>

            </div>

            <div class="clearfix visible-sm"></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>