<?php require_once "inc/initialize.php"; if (!isset($_POST['txnref'])) { redirect_to("index.php"); } require_once "inc/ajiya/webservice.php"; $transctiondetails = checkTranxact(getStatus($_SESSION["transaction_id"])); $applicant = User::find_by_id($session->applicant_id); $database = new MYSQLDatabase(); $sqlprogrammedetails = "SELECT `faculty_name`,`department_name` FROM personal_details p, department d, faculty f WHERE p.applicant_id=" . $_SESSION["applicant_id"] . " AND p.programme_applied_id=d.department_id AND d.faculty_id=f.faculty_id"; $programmedetails = $database->fetch_array($database->query($sqlprogrammedetails)); $sessiondetails = $database->fetch_array($database->query("SELECT session FROM application_status WHERE id=1")); ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>University of Jos, Nigeria</title> <?php require_once LIB_PATH . DS . 'javascript.php'; require_once LIB_PATH . DS . 'css.php'; ?> <style type="text/css"> @media print{ .noprint{display:none} .imgg{ margin-top:-400px; opacity:0.1; width:200px; display:inline-block !important;
$nodes[4] = $xml->xpath('//a:TransactionDate'); $nodes[5] = $xml->xpath('//a:PaymentReference'); $header = $xml->xpath('//s:Body'); $ret = $header[0]; $result['Amount'] = strval($nodes[0][0]); $result['CardNumber'] = strval($nodes[1][0]); $result['RefNumb'] = strval($nodes[2][0]); $result['RetRefNumb'] = strval($nodes[3][0]); $result['TranxDate'] = strval($nodes[4][0]); $result['PaymentReference'] = strval($nodes[5][0]); $result['ResponseCode'] = strval($ret->GetTransactionDataResponse->GetTransactionDataResult->ResponseCode); $result['ResponseDescription'] = strval($ret->GetTransactionDataResponse->GetTransactionDataResult->ResponseDescription[0]); return $result; } if (isset($_POST['retAction']) && !empty($_POST['retAction'])) { $rea = checkTranxact(getStatus($_POST['retAction'])); if (trim($rea['ResponseDescription']) == "") { $rea['ResponseDescription'] = getDes($rea['ResponseCode']); } $ResponseCode = $rea['ResponseCode']; $tranx_id = $_POST['retAction']; $ResponseDescription = $rea['ResponseDescription']; $amount = $rea['Amount']; $CardNumber = $rea['CardNumber']; $PaymentReference = $rea['PaymentReference']; $RefNumb = $rea['RefNumb']; $RetRefNumb = $rea['RetRefNumb']; $TranxDate = $rea['TranxDate']; echo ' <h4 class="alert alert-info">Interswitch says</h4> <table class="table table-hover">