[{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}]
    [{else}] [{* 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}]
    [{/if}]


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

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