Exemplo n.º 1
0
<?php

if (isset($_GET['txid'])) {
    ?>

	<?php 
    $entry = new \OutSpokane\FlagHandle();
    $timestamp = '';
    $parts = explode('-', $_GET['txid']);
    if (count($parts) == 2) {
        if (is_numeric($parts[1])) {
            $timestamp = $parts[0];
            $entry = new \OutSpokane\FlagHandle($parts[1]);
        }
    }
    $stripe_keys = \OutSpokane\Entry::getStripeKeys();
    ?>

	<a name="confirmation-payment"></a>
	<h2>Confirmation and Payment</h2>

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

<div class="wrap">

	<?php 
if ($action == 'view') {
    ?>

		<?php 
    $entry = new \OutSpokane\FlagHandle(isset($_GET['id']) ? $_GET['id'] : 0);
    ?>

		<?php 
    if ($entry->getCreatedAt() === NULL) {
        ?>

			<div class="alert alert-danger">
				Entry Not Found
			</div>

		<?php 
    } else {
        ?>

			<h1>