File: /home/di/public_html/mediamind.co.uk/page-complete.php
<?php
get_header();
$checkoutId = isset($_GET['session_id']) ? $_GET['session_id'] : null;
$name = isset($_GET['name_of_cust']) ? $_GET['name_of_cust'] : null;
$email = isset($_GET['email']) ? $_GET['email'] : null;
$agency = isset($_GET['agency']) ? $_GET['agency'] : null;
$ranking = isset($_GET['level']) ? $_GET['level'] : null;
$price = isset($_GET['price']) ? $_GET['price'] : null;
$job_title = isset($_GET['job_title']) ? $_GET['job_title'] : null;
$space = isset($_GET['space']) ? $_GET['space'] : null;
$host = isset($_GET['host']) ? $_GET['host'] : null;
$GLOBALS['submissions']->recordSubmission($checkoutId, $name, $agency, $ranking, $email, $job_title, $space, $host, $price);
?>
<main id="main" class="has-off-white-background-color">
<?= the_content();?>
<div class="wp-block-group is-vertical is-content-justification-center is-layout-flex wp-container-core-group-is-layout-1 wp-block-group-is-layout-flex">
<div class="info">
<table >
<tbody>
<tr>
<th>Name:</th>
<td><?=$name;?></td>
</tr>
<tr>
<th>Agency:</th>
<td><?=$agency;?></td>
</tr>
<tr>
<th>Ranking:</th>
<td><?=$ranking;?></td>
</tr>
<tr>
<th>Price:</th>
<td>£<?=$price / 100;?></td>
</tr>
<tr>
<th>Stripe Checkout Id:</th>
<td class="id"><?=$checkoutId;?></td>
</tr>
</tbody>
</table>
<div class="wp-block-spacer" style="height:1rem"></div>
<p>A payment receipt will have been sent to your email inbox</p>
<div class="wp-block-spacer" style="height:3rem"></div>
</div>
</div>
</main>
<?php
get_footer();