{% load static %}
<html>
    <head>
        <title></title>
    </head>
    <body>
        <form method="post" action="https://sandbox.safaricom.co.ke/mpesa/stkpush/v1/processrequest" name="f1">
            <table>
                <tbody>
                    {% for field_name, field_value in api_parameters.items %}
                        <input type="hidden" name={{ field_name }} value={{ field_value }}>
                    {% endfor %}   
                </tbody>
            </table>
            <script type="text/javascript">
            document.f1.submit();
        </script>
        </form>

        <form method="post" action="https://sandbox.safaricom.co.ke/mpesa/stkpush/v1/processrequest" name="f1">
            <table>
                <tbody>
                    {% for field_name, field_value in api_parameters.items %}
                        <input type="hidden" name={{ field_name }} value={{ field_value }}>
                    {% endfor %}   
                </tbody>
            </table>
            <script type="text/javascript">
            document.f1.submit();
        </script>
        </form>
    </body>
</html>