<?php 
    if (isset($_POST['form'])) {
        ?>
		<div class="alert alert-danger">
			There was a problem processing your credit card. Please try again.
		</div>
	<?php 
    }
    ?>

	<?php 
    if ($entry->getId() !== NULL && $entry->getCreatedAt() == $timestamp) {
        ?>

		<?php 
        if ($entry->getPaidAt() !== NULL && $entry->getAmountDue() == 0) {
            ?>
			<div class="alert alert-success">
				Thank you for your payment!
			</div>
		<?php 
        }
        ?>

		<table class="table">
			<tr>
				<th>Date:</th>
				<td><?php 
        echo $entry->getCreatedAt('n/j/Y');
        ?>
</td>
								<tr>
									<th>Amount Paid:</th>
									<td>$<?php 
            echo number_format($entry->getPaymentAmount(), 2);
            ?>
</td>
								</tr>
								<tr>
									<th>Payment Method:</th>
									<td>
										<?php 
            echo $entry->getPaymentMethod($entry->getPaymentMethodId());
            ?>
										on
										<?php 
            echo $entry->getPaidAt('n/j/Y');
            ?>
									</td>
								</tr>
							<?php 
        }
        ?>
						</table>

					</div>

					<?php 
        $receipt_link = '';
        /** @var WP_Post[] $pages */
        $pages = get_pages();
        foreach ($pages as $page) {