<?php

$path = "../../../";
require_once $path . 'core/includes/header.inc.php';

$order_id = 'unknown';
if (isset($_SESSION['order_id'])) {
    $order_id = (int) $_SESSION['order_id'];
}

$order_complete_url = HTTPS_SITE_URL . '/shop/checkout/order_complete.php';
$data = [
    'order_id' => $order_id,
    'payment_gateway' => 'paypal',
];
$data += $_GET;

$order_complete_url .= '?' . http_build_query($data);

header("Location: $order_complete_url");
exit();
