<html>
<head>
    <title>[{oxmultilang ident="D3HEIDELPAY_ORDER_3DS_IFRAME_APRP"}]</title>
    <style type="text/css">
        <!--
        html, body {
            font-family      : Tahoma, Arial, sans-serif;
            font-size        : 11px;
            color            : #000000;
            background-color : #ffffff;
        }

        -->
    </style>
</head>
[{if $oView->isHeidelpaySecureUserInputSuccess()}]
<body>

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

<script type="text/javascript">
    <!--
    parent.location.href = "[{$oViewConf->getSslSelfLink()}]&force_sid=[{$oViewConf->getSessionId()}]&cl=[{$oView->get3dsClassReturn()}]";
    //-->
</script>

[{elseif false == $oView->isHeidelpaySecureUserInputSuccess() && $bl3dSecureFailed}]
<body>

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

<script type="text/javascript">
    <!--
    [{if $oHeidelpayViewConfig->getHeidelpayConfVar('d3heidelpay_sCCInputPosition') == "afterstep4"}]
    parent.location.href = "[{$oViewConf->getSslSelfLink()}]&force_sid=[{$oViewConf->getSessionId()}]&payerror=-99&cl=order&fnc=execute&ord_custinfo=1&ord_agb=1";
    [{else}]
    parent.location.href = "[{$oViewConf->getSslSelfLink()}]&force_sid=[{$oViewConf->getSessionId()}]&payerror=-99&cl=payment";
    [{/if}]
    //-->
</script>

[{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>
