[{assign var='oHeidelPaySettings' value=$oHeidelpayViewConfig->getSettings()}]
[{assign var='oHeidelPayment' value=$oHeidelPaySettings->getPayment($paymentmethod)}]
[{assign var="aBrands" value=$oHeidelpayViewConfig->getHeidelpayNgwBrands($paymentmethod, $oHeidelPayment, $oxcmp_user)}]
<div id="paymentOption_[{$sPaymentID}]" class="payment-option [{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]active-payment[{/if}]">
<input id="payment_[{$sPaymentID}]" type="radio" name="paymentid" value="[{$sPaymentID}]" [{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]checked="checked"[{/if}] />
    [{assign var="sImageUrl" value=$oViewConf->getModuleUrl('d3heidelpay','out/img/')}]
    <ul class="form">
        <li>
        [{if $oHeidelpayViewConfig->getPaymentCode($paymentmethod->getId()) == "DD"}]
            [{include file="img_elv_mobile.tpl"}]
        [{/if}]
            [{include file="img_creditcard_mobile.tpl" aBrands=$aBrands}]
            [{include file="img_debitcard_mobile.tpl" aBrands=$aBrands}]
        </li>
        <li>
            [{if $oHeidelpayViewConfig->getPaymentCode($paymentmethod->getId()) == "CC"}]
            [{* Bereich für Kreditkartenzahlung *}]

                [{assign var=oStoreData value=$oView->getUserHPStoreData($paymentmethod->getId())}]
                <ul class="storeduid">
                    <li class="head">
                        <span title="[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_PAYAGAIN"}]">
                            [{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_PAYAGAIN"}]
                        </span>
                    </li>
                    <li>
                        <div>
                            [{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_CREDITCARD"}]
                        </div>
                        <span>
                            [{$oStoreData->aDynValue.kktype}]
                        </span>
                    </li>
                    <li>
                        <div>
                            [{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_NUMBER"}]
                        </div>
                        <span>
                            [{$oStoreData->aDynValue.kknumber}]
                        </span>
                    </li>
                    <li>
                        <div>
                            [{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_BANK_ACCOUNTHOLDER"}]
                        </div>
                        <span>
                            [{$oStoreData->aDynValue.kkname}]
                        </span>
                    </li>
                    <li>
                        <div>
                            [{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_VALID_UNTIL"}]
                        </div>
                        <span>
                            [{$oStoreData->aDynValue.kkmonth}]/[{$oStoreData->aDynValue.kkyear}]
                        </span>
                    </li>
                </ul>
                <div style="padding: 5px;">
                    <div style="padding-bottom: 5px;">
                        <button type="submit"
                                class="btn storeduid"
                                onclick="submitStoreUIdForm('storeddata_[{$sPaymentID}]','1');return false"
                            >[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_BTN_YES_MOBILE"}]</button>
                    </div>

                </div>
                <div style="padding: 5px;">
                    <div style="padding-top: 5px; padding-bottom: 5px;">
                        <button type="submit"
                                class="btn storeduid"
                                onclick="submitStoreUIdForm('storeddata_[{$sPaymentID}]','0');return false"
                            >[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_BTN_NO_MOBILE"}]</button>
                    </div>
                </div>
                <div class="alert alert-error d3heidelpay">
                    [{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_SECURITYINFO"}]
                </div>
            [{elseif $oHeidelpayViewConfig->getPaymentCode($paymentmethod->getId()) == "DC"}]
            [{* Bereich für Debitkartenzahlung *}]

                [{assign var=oStoreData value=$oView->getUserHPStoreData($paymentmethod->getId())}]
                <ul class="storeduid">
                    <li class="head">
                        <span title="[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_PAYAGAIN"}]">
                            [{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_PAYAGAIN"}]
                        </span>
                    </li>
                    <li>
                        <div>
                            [{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_CREDITCARD"}]
                        </div>
                        <span>
                            [{$oStoreData->aDynValue.kktype}]
                        </span>
                    </li>
                    <li>
                        <div>
                            [{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_NUMBER"}]
                        </div>
                        <span>
                            [{$oStoreData->aDynValue.kknumber}]
                        </span>
                    </li>
                    <li>
                        <div>
                            [{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_BANK_ACCOUNTHOLDER"}]
                        </div>
                        <span>
                            [{$oStoreData->aDynValue.kkname}]
                        </span>
                    </li>
                    <li>
                        <div>
                            [{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_VALID_UNTIL"}]
                        </div>
                        <span>
                            [{$oStoreData->aDynValue.kkmonth}]/[{$oStoreData->aDynValue.kkyear}]
                        </span>
                    </li>
                </ul>
                <div style="padding: 5px;">
                    <div style="padding-bottom: 5px;">
                        <button type="submit"
                                class="btn storeduid"
                                onclick="submitStoreUIdForm('storeddata_[{$sPaymentID}]','1');return false"
                            >[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_DC_BTN_YES_MOBILE"}]</button>
                    </div>
                </div>
                <div style="padding: 5px;">
                    <div style="padding-top: 5px; padding-bottom: 5px;">
                        <button type="submit"
                                class="btn storeduid"
                                onclick="submitStoreUIdForm('storeddata_[{$sPaymentID}]','0');return false"
                            >[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_DC_BTN_NO_MOBILE"}]</button>
                    </div>

                </div>
                <div class="alert alert-error d3heidelpay">
                    [{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_DC_SECURITYINFO"}]
                </div>
            [{elseif $oHeidelpayViewConfig->getPaymentCode($paymentmethod->getId()) == "DD"}]
            [{* Bereich für Bankeinzug *}]

                [{assign var=oStoreData value=$oView->getUserHPStoreData($paymentmethod->getId())}]
                <ul class="storeduid">
                    <li class="head">
                        <span title="[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_PAYAGAIN"}]">
                            [{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_PAYAGAIN"}]
                        </span>
                    </li>
                    <li>
                        <div>
                            [{if is_numeric($oStoreData->aDynValue.lsblz) == false}]
                                [{* SEPA *}]
                                [{oxmultilang ident="D3HEIDELPAY_THANKYOU_PREPAYMENT_IBAN"}]
                            [{else}]
                                [{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_BANK_ACCOUNTNUMBER"}]
                            [{/if}]
                        </div>
                        <span>
                            [{$oStoreData->aDynValue.lsktonr}]
                        </span>
                    </li>
                    <li>
                        <div>
                            [{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_BANK_ACCOUNTHOLDER"}]
                        </div>
                        <span>
                            [{$oStoreData->aDynValue.lsktoinhaber}]
                        </span>
                    </li>
                    <li>
                        <div>
                            [{if is_numeric($oStoreData->aDynValue.lsblz) == false}]
                                [{* SEPA *}]
                                [{oxmultilang ident="D3HEIDELPAY_THANKYOU_PREPAYMENT_BIC"}]
                            [{else}]
                                [{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_BANK_ROUTINGNUMBER"}]
                            [{/if}]
                        </div>
                        <span>
                            [{$oStoreData->aDynValue.lsblz}]
                        </span>
                    </li>
                </ul>
                <div style="padding: 5px;">
                    <div style="padding-bottom: 5px;">
                        <button type="submit"
                                class="btn storeduid"
                                onclick="submitStoreUIdForm('storeddata_[{$sPaymentID}]','1');return false"
                            >[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_DD_BTN_YES_MOBILE"}]</button>
                    </div>
                </div>
                <div style="padding: 5px;">
                    <div style="padding-top: 5px; padding-bottom: 5px;">
                        <button type="submit"
                                class="btn storeduid"
                                onclick="submitStoreUIdForm('storeddata_[{$sPaymentID}]','0');return false"
                            >[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_DD_BTN_NO_MOBILE"}]</button>
                    </div>
                </div>
                <div class="alert alert-error d3heidelpay">
                    [{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_DD_SECURITYINFO"}]
                </div>
            [{/if}]
        </li>

    [{block name="checkout_payment_longdesc"}]
        [{if $paymentmethod->oxpayments__oxlongdesc->value}]
            <li>
                <div class="payment-desc">
                    [{$paymentmethod->oxpayments__oxlongdesc->getRawValue()}]
                </div>
            </li>
        [{/if}]
    [{/block}]
    </ul>
</div>
</form>

<form action="[{$oViewConf->getSslSelfLink()}]"
      name="storeddata_[{$sPaymentID}]"
      method="post"
      id="storeddata_[{$sPaymentID}]">
    [{$oViewConf->getHiddenSid()}]
    <input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
    <input type="hidden" name="fnc" value="getHPWrappedPayment">
    <input type="hidden" name="cnid" value="[{$oViewConf->getActCatId()}]">
    <input type="hidden" name="paymentid" value="[{$sPaymentID}]">
    <input type="hidden" name="usehpstore" value="0">
</form>

[{* dummy form *}]
<form>
