[{assign var="payment" value=$oView->getPayment()}]
[{assign var='oHeidelPaySettings' value=$oHeidelpayViewConfig->getSettings()}]
[{assign var='oHeidelPayment' value=$oHeidelPaySettings->getPayment($payment)}]
[{assign var="sImageUrl" value=$oViewConf->getModuleUrl('d3heidelpay','out/img/')}]
[{assign var="oStoreData" value=$oView->getUserHPStoreData($payment->getId())}]
<form action="[{$oViewConf->getSslSelfLink()|oxaddparams:"&heidelpaytemplate=heidelpay_cc_input.tpl"}]" method="post">
    [{$oViewConf->getHiddenSid()}]
    [{$oViewConf->getNavFormParams()}]
    <input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
    <input type="hidden" name="fnc" value="d3PayWithStoreData">
    <input type="hidden" name="challenge" value="[{$challenge}]">
    <input type="hidden" name="sDeliveryAddressMD5" value="[{$oView->getDeliveryAddressMD5()}]">

    <label class="status error corners" style="background: none; display:block;">
        <input type="radio" name="usehpstore" value="1" checked>
        [{assign var="sBrandIdent" value=$oStoreData->aDynValue.kktype}]
        [{include file="payment_heidelpay_img.tpl" sImageUrl=$sImageUrl|cat:"logo_"|cat:$sBrandIdent|lower|cat:".jpg" sBrandIdent=$sBrandIdent}]
        [{$oStoreData->aDynValue.kknumber}]
        [{oxmultilang ident="D3HEIDELPAY_CC_INPUT_EXPIRES"}] [{$oStoreData->aDynValue.kkmonth}]
        /[{$oStoreData->aDynValue.kkyear}]
        [{oxmultilang ident="D3HEIDELPAY_CC_INPUT_OWNER"}] [{$oStoreData->aDynValue.kkname}]
    </label>
    <label class="status error corners" style="background: none; display:block;">
        <input type="radio" name="usehpstore" value="0">
        [{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_NEW_CARD"}]
    </label>
    <div class="status corners error">
        [{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_SECURITYINFO"}]
    </div>

    <div class="lineBox clear">
        <a href="[{oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=order"}]"
           class="submitButton largeButton">[{oxmultilang ident="D3HEIDELPAY_ORDER_PAGE_BACKSTEPT"}]</a>
        <button type="submit"
                name="userform"
                class="submitButton nextStep largeButton"
                id="paymentNextStepBottom">[{oxmultilang ident="D3HEIDELPAY_ORDER_PAGE_NEXTSTEP"}]</button>
    </div>
</form>
