<html>
[{if $oView->isHeidelpaySecureUserInputSuccess()}]
    <head>
        <meta http-equiv="refresh" content="0; [{$oViewConf->getSslSelfLink()}]&force_sid=[{$oViewConf->getSessionId()}]&cl=[{$oView->get3dsClassReturn()}]">
    </head>
    <body>

    [{oxmultilang ident="D3HEIDELPAY_ORDER_3DS_IFRAME_WAITDE"}]<br>
    <br>
    [{oxmultilang ident="D3HEIDELPAY_ORDER_3DS_IFRAME_WAITEN"}]<br>

[{elseif false == $oView->isHeidelpaySecureUserInputSuccess() && $bl3dSecureFailed}]
    <head>
        [{if $oHeidelpayViewConfig->getHeidelpayConfVar('d3heidelpay_sCCInputPosition') == "afterstep4"}]
            <meta http-equiv="refresh" content="0; [{$oViewConf->getSslSelfLink()}]&force_sid=[{$oViewConf->getSessionId()}]&payerror=-99&cl=order&fnc=execute&ord_custinfo=1&ord_agb=1">
        [{else}]

            <meta http-equiv="refresh" content="0; [{$oViewConf->getSslSelfLink()}]&force_sid=[{$oViewConf->getSessionId()}]&payerror=-99&cl=payment">
        [{/if}]
    </head>
    <body>

    [{oxmultilang ident="D3HEIDELPAY_ORDER_3DS_IFRAME_WAITDE"}]<br>
    <br>
    [{oxmultilang ident="D3HEIDELPAY_ORDER_3DS_IFRAME_WAITEN"}]<br>

[{else}]
    <body onLoad="OnLoadEvent();">
    [{assign var='o3DSecure' value=$oHeidelpayViewConfig->get3dSecureResponse()}]
    <form name="event" id="event" action="[{$o3DSecure->sRedirectURL}]" method="post">
        [{foreach from=$o3DSecure->aRedirectRarams key='key' item='value'}]
            <input type="hidden" name="[{$key}]" value="[{$value}]">
        [{/foreach}]
        <noscript>
            <p>
                [{oxmultilang ident="D3HEIDELPAY_ORDER_3DS_IFRAME_NOJS"}]<br>
                [{oxmultilang ident="D3HEIDELPAY_ORDER_3DS_IFRAME_TEXTDE"}]
                <br>
                <br>
                [{oxmultilang ident="D3HEIDELPAY_ORDER_3DS_IFRAME_TEXTEN"}]
            </p>
        </noscript>
    </form>

    <script type="text/javascript">
        <!--
        function OnLoadEvent() {
            document.forms.event.submit(
            );
        }
        //-->
    </script>
[{/if}]
</body>
</html>
