diff --git a/guest/guest_pay_invoice_stripe.php b/guest/guest_pay_invoice_stripe.php index 0873df155..46a738df3 100644 --- a/guest/guest_pay_invoice_stripe.php +++ b/guest/guest_pay_invoice_stripe.php @@ -34,7 +34,7 @@ if (isset($_GET['invoice_id'], $_GET['url_key']) && !isset($_GET['payment_intent // Ensure valid invoice if (!$sql || mysqli_num_rows($sql) !== 1) { echo "

Oops, something went wrong! Please ensure you have the correct URL and have not already paid this invoice.

"; - require_once 'includes/guest_footer.php'; + require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php'; error_log("Stripe payment error - Invoice with ID $invoice_id not found or not eligible."); exit(); } diff --git a/guest/guest_pay_setup_stripe_customer.php b/guest/guest_pay_setup_stripe_customer.php index 1cb1d8a9c..44eb1a8d4 100644 --- a/guest/guest_pay_setup_stripe_customer.php +++ b/guest/guest_pay_setup_stripe_customer.php @@ -32,7 +32,7 @@ if (isset($_GET['invoice_id'], $_GET['url_key'])) { // Ensure valid invoice if (!$sql || mysqli_num_rows($sql) !== 1) { echo "

Oops, something went wrong! Please ensure you have the correct URL and have not already paid this invoice.

"; - require_once 'includes/guest_footer.php'; + require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php'; error_log("Stripe payment error - Invoice with ID $invoice_id not found or not eligible."); exit(); } diff --git a/guest/guest_post.php b/guest/guest_post.php index a28e8c47c..b0916512e 100644 --- a/guest/guest_post.php +++ b/guest/guest_post.php @@ -848,7 +848,6 @@ if (isset($_POST['create_stripe_customer'])) { // Ensure valid invoice if (!$sql || mysqli_num_rows($sql) !== 1) { echo "

Oops, something went wrong! Please ensure you have the correct URL and have not already paid this invoice.

"; - require_once 'includes/guest_footer.php'; error_log("Stripe payment error - Invoice with ID $invoice_id not found or not eligible."); exit(); }