I see the issue.
Replace lines 163-174 in your receipt.php file with:
<?php
} else if (isset($_SESSION['CheckNumber'])) {
?>
<div style="border-top:solid 7px #3476a3; /* Accent11 */ background-color:#f0f0f0; /* BG_Light */" >
<p > <strong >Check number:</strong> <?php echo($_SESSION['CheckNumber']); ?></p>
</div>
<?php
} else {
?>
<div style="border-top:solid 7px #3476a3; /* Accent11 */ background-color:#f0f0f0; /* BG_Light */" >
<p > <strong >Card number:</strong> xxxx xxxx xxxx <?php echo((strlen(((isset($_POST["cc_number"]))?$_POST["cc_number"]:""))<4)?((isset($_POST["cc_number"]))?$_POST["cc_number"]:""):substr(((isset($_POST["cc_number"]))?$_POST["cc_number"]:""),(strlen(((isset($_POST["cc_number"]))?$_POST["cc_number"]:""))-4),4)); ?></p>
</div>
<?php
}
?>

