echo "ePay: " . $epay->getEpayError($merchantnumber, $return['epayresponse']); } if ($return['pbsResponse'] != -1 and strlen($return['pbsResponse']) > 0) { echo "<br />PBS: " . $epay->getPbsError($merchantnumber, $return['pbsResponse']); } if ($return['pbsresponse'] != -1 and strlen($return['pbsresponse']) > 0) { echo "<br />PBS: " . $epay->getPbsError($merchantnumber, $return['pbsresponse']); } echo "</div><br />"; } } ?> <?php //Get the transaction $transaction = $epay->gettransaction($merchantnumber, $_GET['tid']); //Check the result if ($transaction['gettransactionResult'] == 'true') { //Get the transaction history $history = $transaction['transactionInformation']['history']['TransactionHistoryInfo']; if (!array_key_exists(0, $history)) { $history = array($history); } if (is_array($history)) { asort($history); echo "<table cellspacing=\"0\" cellpadding=\"3\" style=\"width: 800px;\">"; foreach ($history as $value) { ?> <tr> <td> <?php