<?php
require_once '../app/db.php';
$booking_id = $_GET['id'];

$stmt = $pdo->prepare("SELECT * FROM bookings WHERE id=?");
$stmt->execute([$booking_id]);
$booking = $stmt->fetch();
?>

<h2>Payment - Booking #<?= $booking['booking_code'] ?></h2>
<h4>Total: $<?= $booking['estimated_price'] ?></h4>

<a href="stripe_checkout.php?id=<?= $booking_id ?>" class="btn btn-dark">
Pay by Card (Stripe)
</a>

<a href="paynow.php?id=<?= $booking_id ?>" class="btn btn-warning">
PayNow
</a>

<a href="corporate_invoice.php?id=<?= $booking_id ?>" class="btn btn-secondary">
Corporate Invoice
</a>
