{literal} {/literal} {php} $is_recurring = @constant('XT_VRPAYECOMMERCE_GENERAL_RECURRING') == 1; $is_customer = $_SESSION['customer']->customer_info['account_type'] == 0; $sort_number = array(@constant('XT_VRPAYECOMMERCE_CCSAVED_SORT'), @constant('XT_VRPAYECOMMERCE_CC_SORT'), @constant('XT_VRPAYECOMMERCE_DC_SORT'), @constant('XT_VRPAYECOMMERCE_DDSAVED_SORT'), @constant('XT_VRPAYECOMMERCE_DD_SORT'), @constant('XT_VRPAYECOMMERCE_EPS_SORT'),@constant('XT_VRPAYECOMMERCE_GIROPAY_SORT'),@constant('XT_VRPAYECOMMERCE_IDEAL_SORT'), @constant('XT_VRPAYECOMMERCE_KLARNAPAYLATER_SORT'), @constant('XT_VRPAYECOMMERCE_KLARNASLICEIT_SORT'), @constant('XT_VRPAYECOMMERCE_MASTERPASS_SORT'), @constant('XT_VRPAYECOMMERCE_PAYPALSAVED_SORT'), @constant('XT_VRPAYECOMMERCE_PAYPAL_SORT'), @constant('XT_VRPAYECOMMERCE_KLARNAOBT_SORT'), @constant('XT_VRPAYECOMMERCE_SWISSPOSTFINANCE_SORT'),@constant('XT_VRPAYECOMMERCE_PAYDIREKT_SORT'),@constant('XT_VRPAYECOMMERCE_EASYCREDIT_SORT')); asort($sort_number); $sort_number = array_unique($sort_number); foreach ($sort_number as $sort) { if (@constant('XT_VRPAYECOMMERCE_CCSAVED_SORT') == $sort && $is_recurring && $is_customer) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_CCSAVED_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:CCSAVED} {if $smarty.const.XT_VRPAYECOMMERCE_CCSAVED_VISA eq '1'} {/if} {if $smarty.const.XT_VRPAYECOMMERCE_CCSAVED_MASTER eq '1'} {/if} {if $smarty.const.XT_VRPAYECOMMERCE_CCSAVED_AMEX eq '1'} {/if} {if $smarty.const.XT_VRPAYECOMMERCE_CCSAVED_DINERS eq '1'} {/if} {if $smarty.const.XT_VRPAYECOMMERCE_CCSAVED_JCB eq '1'} {/if}

{/if} {php} } if ( (@constant('XT_VRPAYECOMMERCE_CC_SORT') == $sort) && (!$is_recurring || !$is_customer) ) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_CC_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:CC} {if $smarty.const.XT_VRPAYECOMMERCE_CC_VISA eq '1'} {/if} {if $smarty.const.XT_VRPAYECOMMERCE_CC_MASTER eq '1'} {/if} {if $smarty.const.XT_VRPAYECOMMERCE_CC_AMEX eq '1'} {/if} {if $smarty.const.XT_VRPAYECOMMERCE_CC_DINERS eq '1'} {/if} {if $smarty.const.XT_VRPAYECOMMERCE_CC_JCB eq '1'} {/if}

{/if} {php} } if (@constant('XT_VRPAYECOMMERCE_DC_SORT') == $sort) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_DC_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:DC}

{/if} {php} } if (@constant('XT_VRPAYECOMMERCE_DDSAVED_SORT') == $sort && $is_recurring && $is_customer) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_DDSAVED_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:DDSAVED}

{/if} {php} } if ( (@constant('XT_VRPAYECOMMERCE_DD_SORT') == $sort) && (!$is_recurring || !$is_customer) ) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_DD_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:DD}

{/if} {php} } if (@constant('XT_VRPAYECOMMERCE_EPS_SORT') == $sort) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_EPS_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:EPS}

{/if} {php} } if (@constant('XT_VRPAYECOMMERCE_GIROPAY_SORT') == $sort) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_GIROPAY_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:GIROPAY}

{/if} {php} } if (@constant('XT_VRPAYECOMMERCE_IDEAL_SORT') == $sort) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_IDEAL_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:IDEAL}

{/if} {php} } if (@constant('XT_VRPAYECOMMERCE_KLARNAPAYLATER_SORT') == $sort) { {/php} {php} } if (@constant('XT_VRPAYECOMMERCE_KLARNASLICEIT_SORT') == $sort) { {/php} {php} } if (@constant('XT_VRPAYECOMMERCE_MASTERPASS_SORT') == $sort) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_MASTERPASS_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:MASTERPASS}

{/if} {php} } if (@constant('XT_VRPAYECOMMERCE_PAYPALSAVED_SORT') == $sort && $is_recurring && $is_customer) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_PAYPALSAVED_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:PAYPALSAVED}

{/if} {php} } if ( (@constant('XT_VRPAYECOMMERCE_PAYPAL_SORT') == $sort) && (!$is_recurring || !$is_customer) ) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_PAYPAL_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:PAYPAL}

{/if} {php} } if (@constant('XT_VRPAYECOMMERCE_PAYDIREKT_SORT') == $sort) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_PAYDIREKT_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:PAYDIREKT}

{/if} {php} } if (@constant('XT_VRPAYECOMMERCE_KLARNAOBT_SORT') == $sort) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_KLARNAOBT_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:KLARNAOBT} {php} if ($_SESSION['selected_language'] == 'de') { {/php} {php} } else { {/php} {php} } {/php}

{/if} {php} } if (@constant('XT_VRPAYECOMMERCE_EASYCREDIT_SORT') == $sort) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_EASYCREDIT_ACTIVATE eq '1'}

{if $disable_easycredit} {form type=radio name=selected_payment value=$payment_code:EASYCREDIT disabled=true unchecked=true} {else} {form type=radio name=selected_payment value=$payment_code:EASYCREDIT} {/if}

{/if} {php} } if (@constant('XT_VRPAYECOMMERCE_SWISSPOSTFINANCE_SORT') == $sort) { {/php} {if $smarty.const.XT_VRPAYECOMMERCE_SWISSPOSTFINANCE_ACTIVATE eq '1'}

{form type=radio name=selected_payment value=$payment_code:SWISSPOSTFINANCE}

{/if} {php} } } {/php}