<?php
$status = $_GET['status'] ?? 'pending';

$message = [
    'paid' => '✅ Payment Successful',
    'failed' => '❌ Payment Failed',
    'pending' => '⏳ Payment Pending'
][$status];
?>
<!DOCTYPE html>
<html>
<head>
    <title>Payment Result</title>
    <style>
        body { font-family: Arial; text-align: center; padding: 50px; }
        .paid { color: green; }
        .failed { color: red; }
        .pending { color: orange; }
    </style>
</head>
<body>

<h1 class="<?= $status ?>"><?= $message ?></h1>

<a href="trans.php" target="_blank">Check Transaction Details</a>
<p></p>
<a href="index.php">Pay again</a>
<p></p>
<a href="/pay"><img align="center"SRC="back.png" border=0 height=45 width=69 ></a>

</body>
</html>
