[{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_mobile.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()}]">
    <ul class="form">
        <li>
            <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>
        </li>
        <li>
            <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>
        </li>
        <li>
            <div class="alert alert-error d3heidelpay">
                [{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_SECURITYINFO"}]
            </div>
        </li>
    </ul>
    <ul class="form">
            <li><button type="submit"
                        name="userform"
                        class="submitButton nextStep largeButton"
                        id="paymentNextStepBottom">[{oxmultilang ident="D3HEIDELPAY_ORDER_PAGE_NEXTSTEP"}]</button></li>
        <li><a href="[{oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=order"}]" class="btn previous"
               id="paymentBackStepBottom">[{ oxmultilang ident="D3HEIDELPAY_ORDER_PAGE_BACKSTEPT" }]</a></li>
    </ul>
</form>
