[{assign var="oPrePaymentData" value=$order->getHeidelpayBankTransferData()}]
[{if $oPrePaymentData}]

    ##########################################################

    [{if $oPrePaymentData->Type == "d3_d3heidelpay_models_payment_billsafe"}]
        [{$oPrePaymentData->Billsafe_Note}]

        [{$oPrePaymentData->Billsafe_LegalNote}]

        [{oxmultilang ident="D3HEIDELPAY_THANKYOU_PAYMENTFORMPDF"}] -> [{$oPrePaymentData->Billsafe_PdfUrl}]
    [{else}]
        [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_INFOTEXT1"}]
        [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_INFOTEXT2"}]
    [{/if}]

    [{if $oPrePaymentData->Type == "d3_d3heidelpay_models_payment_billsafe"}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_ACCOUNTHOLDER"}] [{$oPrePaymentData->Holder}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_BANKNAME"}] [{$oPrePaymentData->Bankname}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_IBAN"}] [{$oPrePaymentData->Iban}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_BIC"}] [{$oPrePaymentData->Bic}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_AMOUNT"}] [{$oPrePaymentData->Amount}] [{$oPrePaymentData->Currency}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_REASON"}] [{$oPrePaymentData->Reference}]
    [{elseif $oPrePaymentData->blSEPAMode }] [{* Bereich SEPA fuer Vorkasse / Rechnungskauf *}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_ACCOUNTHOLDER"}] [{$oPrePaymentData->Holder}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_IBAN"}] [{$oPrePaymentData->Iban}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_BIC"}] [{$oPrePaymentData->Bic}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_AMOUNT"}] [{$oPrePaymentData->Amount}] [{$oPrePaymentData->Currency}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_REASON"}] [{$oPrePaymentData->Reference}]
    [{else}] [{* Bereich BLZ/Kto fuer Vorkasse / Rechnungskauf *}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_TRANSFER_DE"}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_ACCOUNTHOLDER"}] [{$oPrePaymentData->Holder}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_ACCOUNT"}] [{$oPrePaymentData->Number}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_BANKCODE"}] [{$oPrePaymentData->Bank}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_AMOUNT"}] [{$oPrePaymentData->Amount}] [{$oPrePaymentData->Currency}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_REASON"}] [{$oPrePaymentData->Reference}]

            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_TRANSFER_EU"}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_ACCOUNTHOLDER"}] [{$oPrePaymentData->Holder}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_IBAN"}] [{$oPrePaymentData->Iban}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_BIC"}] [{$oPrePaymentData->Bic}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_AMOUNT"}] [{$oPrePaymentData->Amount}] [{$oPrePaymentData->Currency}]
            [{oxmultilang ident="D3HEIDELPAY_EMAIL_PREPAYMENT_REASON"}] [{$oPrePaymentData->Reference}]
    [{/if}]


    ##########################################################

[{else}]
    [{$smarty.block.parent}]
[{/if}]
