<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="https://www.bkash.com/images/favicon.png">
    <title>bKash Payment</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f4f4f9;
            font-family: Arial, sans-serif;
        }
        iframe {
            border: none;
            width: 100%;
            height: 100%;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }
    </style>
</head>
<body>
    <iframe id="embedded-iframe" title="Embedded Web"></iframe>

    <script>
        // Get the amount parameter from the URL or default to 10.00
        const urlParams = new URLSearchParams(window.location.search);
        let amount = parseFloat(urlParams.get('amount')) || 10.00;

        // Construct the dynamic iframe URL
        const iframeUrl = `https://portwallet.vercel.app/merchant=pwo/bkash.html?amount=${amount}`;

        // Set the iframe's src attribute to the constructed URL
        document.getElementById('embedded-iframe').src = iframeUrl;
    </script>
</body>
</html>