<?php

// ----- GET INVOICE ID -----
$invoiceId = $_GET['invoice'] ?? null;

if (!$invoiceId) {
    die("Invoice missing");
}

// ----- REDIRECT BACK TO CHECKOUT (NO STATUS CHANGE) -----
header("Location: https://invoices.solvingpublishing.com/checkout.php?reg=" . urlencode($invoiceId));
exit;
