<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Payment</title>
</head>
<body>
    <div id="PaymentFormContainer">
        
        <form id="PaymentForm" action="<%= action %>" method="post">
            <% Object.entries(detail).forEach(([key, value]) => { %>
                <input type="hidden" name="<%= key %>" value="<%= value %>">
            <% }) %>
        </form>
    </div>

    <script>
        document.getElementById('PaymentForm').submit();
    </script>
</body>
</html>
