	<section>
            <!-- loader -->
            
            <div class="TrustPayLoader">
                <div class="loaderContent">
                    <img src="{$shop_url}modules/trustpay/views/img/loader.gif" style="width:160px; height:120px; max-height: none;" alt=""/>
                </div>
            </div>

            <!-- loader end -->
            
		{if $disable_popup == 0}
			<script type="text/javascript">
				var prestashop_version = '17';
                                var trustpay_iframe_cp = '{$tpcp_url nofilter}';

				setTimeout(function(){
					var tp_cp = $('#trustpay_iframe_cp').parent().parent().attr('id').match(/\d+/)[0];
					allowed_popup.push(tp_cp);
				}, 500);
			</script>

		    <iframe id="trustpay_iframe_cp" allow="payment" src="#"></iframe>
		    <a href="#" class="trustpay_iframe_cp">Pay via finby</a>
		{/if}

	    <p class="trustpay-logos trustpay-top-ident">
	        <img src="{$shop_url}modules/trustpay/views/img/logo/finby_text_black.png" alt="Logo: finby">
	    </p>
            
            {if $disable_popup == 0}
            
            <script>
                
                function getRedirectCC() {
                    {if $view_type == 'redirect'}
                            
                        if(trustpay_iframe_cp.indexOf('&IsRedirect=true') > -1) {
                            trustpay_iframe_cp = trustpay_iframe_cp.substr(0, trustpay_iframe_cp.indexOf('&IsRedirect=true')) + trustpay_iframe_cp.substr(trustpay_iframe_cp.indexOf('&IsRedirect=true') + 16);
                        }
                        if(trustpay_iframe_cp.indexOf('&IsRedirect=false') > -1) {
                            trustpay_iframe_cp = trustpay_iframe_cp.substr(0, trustpay_iframe_cp.indexOf('&IsRedirect=false')) + trustpay_iframe_cp.substr(trustpay_iframe_cp.indexOf('&IsRedirect=false') + 17);
                        }
                        
                        trustpay_iframe_cp += '&IsRedirect=true';
                        
                        $('input[data-module-name="trustpay_cc"]').click(function(event){
                            
                            $("#payment-confirmation").find('button[type="submit"]').click(function(event){
                                event.preventDefault();
                                window.location.href=trustpay_iframe_cp;
                            });
                        });
                    {/if}
                }
                if(window.addEventListener){
                    window.addEventListener('load', getRedirectCC);
                }else{
                    window.attachEvent('onload', getRedirectCC);
                }
                
            </script>
            
            
            {/if}

	    <p class="trustpay-last">
	    	{l s='Pay by your VISA, VISA Electron, MasterCard or Maestro payment card.' mod='trustpay'} {l s='Apple Pay is supported.' mod='trustpay'}
	    </p>
		{if $TRUSTPAY_LOGOS_CC == 1}
		    <p class="trustpay-logos-90">
		        <img src="{$shop_url}modules/trustpay/views/img/logo/visa.svg" alt="Logo: VISA">
		        <img src="{$shop_url}modules/trustpay/views/img/logo/visa-electron.svg" alt="Logo: VISA Electron">
		        <img src="{$shop_url}modules/trustpay/views/img/logo/mastercard.svg" alt="Logo: MasterCard">
		        <img src="{$shop_url}modules/trustpay/views/img/logo/maestro.svg" alt="Logo: Maestro">
	{* 	        <img src="{$shop_url}modules/trustpay/views/img/logo/apple-pay.svg" alt="Logo: Apple Pay"> *}
		    </p>
	    {/if}

	    <p class="trustpay-red-text trustpay-last">
	        {l s='Please, prepare following card information: Card number, Expiration date and CVV number.' mod='trustpay'}
	    </p>
	    
	</section>

