<table>

    <tr>
        <td class="fieldname">Payment gateway</td>
        <td>Realex / GlobalPayments</td>
    </tr>

    <tr>
        <td class="fieldname">Transaction ID</td>
        <td><?= $order->payment_realex['tnx_id'] ?></td>
    </tr>

    <tr>
        <td class="fieldname">Transaction amount</td>
        <td>&pound;<?= $order->payment_realex['amount_paid'] ?></td>
    </tr>

    <tr>
        <td class="fieldname">Funds captured time</td>
        <td>
            <?php if ($order->payment_realex['paid_time']): ?>

                <?= $order->payment_realex['paid_time'] ?>

            <?php else: ?>

                <a href="?action=capture_realex&id=<?= clean_page($order->getId()); ?>" class="btn">
                    Capture funds
                </a>


            <?php endif ?>
        </td>
    </tr>

</table>
