[{assign var='oHeidelPaySettings' value=$oHeidelpayViewConfig->getSettings()}]
[{assign var='oHeidelPayment' value=$oHeidelPaySettings->getPayment($paymentmethod)}]
[{assign var="aBrands" value=$oHeidelpayViewConfig->getHeidelpayNgwBrands($paymentmethod, $oHeidelPayment, $oxcmp_user)}]
[{assign var="sImageUrl" value=$oViewConf->getModuleUrl('d3heidelpay','out/img/')}]
<dl>
<dt>
    <input id="payment_[{$sPaymentID}]"
           type="radio"
           name="paymentid"
           value="[{$sPaymentID}]"
           [{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]checked[{/if}]>
    <label for="payment_[{$sPaymentID}]"><b>[{$paymentmethod->oxpayments__oxdesc->value}]</b></label>

    [{foreach from=$aBrands item='sBrandName' key='sBrandIdent'}]
        [{if $sBrandIdent == 'MASTER'}]<img src="[{$sImageUrl}]logo_master.jpg" alt="Mastercard" style="vertical-align: middle;">[{/if}]
        [{if $sBrandIdent == 'VISA'}]<img src="[{$sImageUrl}]logo_visa.jpg" alt="Visa" style="vertical-align: middle;">[{/if}]
        [{if $sBrandIdent == 'AMEX'}]<img src="[{$sImageUrl}]logo_amex.jpg" alt="AmEx" style="vertical-align: middle;">[{/if}]
        [{if $sBrandIdent == 'DINERS'}]<img src="[{$sImageUrl}]logo_diners.jpg" alt="DINERS" style="vertical-align: middle;">[{/if}]
        [{if $sBrandIdent == 'DISCOVERY'}]<img src="[{$sImageUrl}]logo_discover.jpg" alt="DISCOVERY" style="vertical-align: middle;">[{/if}]
        [{if $sBrandIdent == 'VISAELECTRON'}]<img src="[{$sImageUrl}]logo_visaelectron.jpg" alt="VisaElectron" style="vertical-align: middle;">[{/if}]
        [{if $sBrandIdent == 'MAESTRO'}]<img src="[{$sImageUrl}]logo_maestro.jpg" alt="Maestro" style="vertical-align: middle;">[{/if}]
        [{if $sBrandIdent == 'CARTEBLEUE'}]<img src="[{$sImageUrl}]logo_cartebleue.jpg" alt="CarteBleue" style="vertical-align: middle;">[{/if}]
        [{if $sBrandIdent == 'SOLO'}]<img src="[{$sImageUrl}]logo_solo.jpg" alt="Solo" style="vertical-align: middle;">[{/if}]
        [{if $sBrandIdent == 'POSTEPAY'}]<img src="[{$sImageUrl}]logo_postepay.jpg" alt="Postepay" style="vertical-align: middle;">[{/if}]
        [{if $sBrandIdent == 'EURO6000'}]<img src="[{$sImageUrl}]logo_euro6000.jpg" alt="Euro6000" style="vertical-align: middle;">[{/if}]
        [{if $sBrandIdent == 'SERVIRED'}]<img src="[{$sImageUrl}]logo_servired.jpg" alt="ServiRed" style="vertical-align: middle;">[{/if}]
        [{if $sBrandIdent == '4B'}]<img src="[{$sImageUrl}]logo_4b.jpg" alt="4B" style="vertical-align: middle;">[{/if}]
        [{if $sBrandIdent == 'DANKORT'}]<img src="[{$sImageUrl}]logo_dankort.jpg" alt="Dankort" style="vertical-align: middle;">[{/if}]
    [{/foreach}]
</dt>

[{if $inptcounter > -1}]</form>[{/if}]
<dd class="[{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]activePayment[{/if}]">
    <ul class="form">
        <li>
            [{if $oHeidelpayViewConfig->getPaymentCode($paymentmethod->getId()) == "CC"}]
                [{* Bereich für Kreditkartenzahlung *}]


                [{assign var=oStoreData value=$oView->getUserHPStoreData($paymentmethod->getId())}]
                <div class="status error corners" style="background: none;">

                    <div style="padding: 5px; ">[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_PAYAGAIN"}]</div>
                    <div style="padding: 5px; width: 100px; float: left;">[{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_CREDITCARD"}]</div>
                    <div style="padding: 5px; float: none;">[{$oStoreData->aDynValue.kktype}]</div>
                    <div style="padding: 5px; width: 100px; float: left;">[{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_NUMBER"}]</div>
                    <div style="padding: 5px; float: none;">[{$oStoreData->aDynValue.kknumber}]</div>
                    <div style="padding: 5px; width: 100px; float: left;">[{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_BANK_ACCOUNTHOLDER"}]</div>
                    <div style="padding: 5px; float: none;">[{$oStoreData->aDynValue.kkname}]</div>
                    <div style="padding: 5px; width: 100px; float: left;">[{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_VALID_UNTIL"}]</div>
                    <div style="padding: 5px; float: none;">[{$oStoreData->aDynValue.kkmonth}]/[{$oStoreData->aDynValue.kkyear}]</div>
                </div>
                <div style="padding: 5px;">
                    <form action="[{$oViewConf->getSslSelfLink()}]"
                          name="cc_storeddata_yes"
                          method="post"
                          id="cc_storeddata_yes">
                        [{$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="1">

                        <div style="padding-bottom: 5px;">
                            <button type="submit"
                                    class="submitButton largeButton">[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_BTN_YES"}]</button>
                        </div>

                    </form>
                </div>
                <div style="padding: 5px;">
                    <form action="[{$oViewConf->getSslSelfLink()}]"
                          name="cc_storeddata_no"
                          method="post"
                          id="cc_storeddata_no">
                        [{$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">

                        <div style="padding-top: 5px; padding-bottom: 5px;">
                            <button type="submit"
                                    class="submitButton largeButton">[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_BTN_NO"}]</button>
                        </div>
                    </form>
                </div>
                <div class="status corners error">
                    [{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())}]
                <div class="status error corners" style="background: none;">

                    <div style="padding: 5px; ">[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_DC_PAYAGAIN"}]</div>
                    <div style="padding: 5px; width: 100px; float: left;">[{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_CREDITCARD"}]</div>
                    <div style="padding: 5px; float: none;">[{$oStoreData->aDynValue.kktype}]</div>
                    <div style="padding: 5px; width: 100px; float: left;">[{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_NUMBER"}]</div>
                    <div style="padding: 5px; float: none;">[{$oStoreData->aDynValue.kknumber}]</div>
                    <div style="padding: 5px; width: 100px; float: left;">[{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_BANK_ACCOUNTHOLDER"}]</div>
                    <div style="padding: 5px; float: none;">[{$oStoreData->aDynValue.kkname}]</div>
                    <div style="padding: 5px; width: 100px; float: left;">[{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_VALID_UNTIL"}]</div>
                    <div style="padding: 5px; float: none;">[{$oStoreData->aDynValue.kkmonth}]/[{$oStoreData->aDynValue.kkyear}]</div>
                </div>
                <div style="padding: 5px;">
                    <form action="[{$oViewConf->getSslSelfLink()}]"
                          name="dc_storeddata_yes"
                          method="post"
                          id="dc_storeddata_yes">
                        [{$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="1">

                        <div style="padding-bottom: 5px;">
                            <button type="submit"
                                    class="submitButton largeButton">[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_DC_BTN_YES"}]</button>
                        </div>

                    </form>
                </div>
                <div style="padding: 5px;">
                    <form action="[{$oViewConf->getSslSelfLink()}]"
                          name="dc_storeddata_no"
                          method="post"
                          id="dc_storeddata_no">
                        [{$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">

                        <div style="padding-top: 5px; padding-bottom: 5px;">
                            <button type="submit"
                                    class="submitButton largeButton">[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_DC_BTN_NO"}]</button>
                        </div>
                    </form>
                </div>
                <div class="status corners error">
                    [{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())}]
                <div class="status error corners" style="background: none;">
                    <div style="padding: 5px; ">[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_DD_PAYAGAIN"}]</div>
                    <div style="padding: 5px; width: 100px; float: left;">
                        [{if is_numeric($oStoreData->aDynValue.lsblz) == false}]
                            [{* SEPA *}]
                            [{oxmultilang ident="D3HEIDELPAY_THANKYOU_PREPAYMENT_IBAN"}]
                        [{else}]
                            [{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_BANK_ACCOUNTNUMBER"}]
                        [{/if}]
                    </div>
                    <div style="padding: 5px; float: none;">[{$oStoreData->aDynValue.lsktonr}]</div>
                    <div style="padding: 5px; width: 100px; float: left;">[{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_BANK_ACCOUNTHOLDER"}]</div>
                    <div style="padding: 5px; float: none;">[{$oStoreData->aDynValue.lsktoinhaber}]</div>
                    <div style="padding: 5px; width: 100px; float: left;">
                        [{if is_numeric($oStoreData->aDynValue.lsblz) == false}]
                            [{* SEPA *}]
                            [{oxmultilang ident="D3HEIDELPAY_THANKYOU_PREPAYMENT_BIC"}]
                        [{else}]
                            [{oxmultilang ident="D3HEIDELPAY_PAYMENT_INPUT_BANK_ROUTINGNUMBER"}]
                        [{/if}]
                    </div>
                    <div style="padding: 5px; float: none;">[{$oStoreData->aDynValue.lsblz}]</div>
                </div>
                <div style="padding: 5px;">
                    <form action="[{$oViewConf->getSslSelfLink()}]"
                          name="dd_storeddata_yes"
                          method="post"
                          id="dd_storeddata_yes">
                        [{$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="1">

                        <div style="padding-bottom: 5px;">
                            <button type="submit"
                                    class="submitButton largeButton">[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_DD_BTN_YES"}]</button>
                        </div>

                    </form>
                </div>
                <div style="padding: 5px;">
                    <form action="[{$oViewConf->getSslSelfLink()}]"
                          name="dd_storeddata_no"
                          method="post"
                          id="dd_storeddata_no">
                        [{$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">

                        <div style="padding-top: 5px; padding-bottom: 5px;">
                            <button type="submit"
                                    class="submitButton largeButton">[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_DD_BTN_NO"}]</button>
                        </div>
                    </form>
                </div>
                <div class="status corners error">
                    [{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_DD_SECURITYINFO"}]
                </div>
            [{/if}]

        </li>
    </ul>

    [{if $paymentmethod->oxpayments__oxlongdesc->value}]
        <div class="desc">
            [{$paymentmethod->oxpayments__oxlongdesc->value}]
        </div>
    [{/if}]
</dd>
</dl>
[{* dummy form *}]
<form>
