<?php
// Determine which payment gateway to redirect to
$id = filter_input(INPUT_GET, 'id', FILTER_VALIDATE_INT);

switch ($id) {
    case 1: // PayPal
        header("Location: index.php?Act=paypal");
        exit;

    case 2: // Credit Card
        header("Location: index.php?Act=creditcard");
        exit;

    case 3: // StormPay
        header("Location: index.php?Act=stormpay");
        exit;

    case 4: // Checkout
        header("Location: index.php?Act=checkout");
        exit;

    case 5: // eGold
        header("Location: index.php?Act=egold");
        exit;

    case 10: // WorldPay
        header("Location: index.php?Act=worldpay");
        exit;

    default:
        // Optional: Redirect somewhere safe or show an error
        header("Location: index.php?Act=home");
        exit;
}
