privilegedemarque/themes/site/modules/paypal/express_checkout_payment.tpl
Serveur preprod f0c0c48223 first push
2016-04-14 16:14:31 +02:00

100 lines
4.0 KiB
Smarty
Executable File

{*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $smarty.const._PS_VERSION_ >= 1.6}
<div class="col-xs-12 col-sm-4 ">
<div class="block-payment">
<a href="javascript:void(0)" onclick="$('#paypal_payment_form').submit();" id="paypal_process_payment" title="{l s='Pay with PayPal' mod='paypal'}" class="container-payment">
<h3>{l s='Paiement avec paypal' mod='paypal'}</h3>
<div class="shape-red"></div>
<div class="description rte">
{l s='Avec PayPal, vos achats sont protégés et une adresse email et un mot de passe suffisent pour faire un paiement.' mod='paypal'}
</div>
<div class="img-paypal logo-payment"></div>
</a>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="block-payment">
<a href="javascript:void(0)" id="PAYLIB" class="container-payment sendLink">
<h3>{l s='Paiement avec paylib' mod='atos'}</h3>
<div class="shape-red"></div>
<div class="description rte">
{l s='Le système de paiement 100% sécurisé avec votre banque comme seul interlocuteur pour vos paiements et sans avoir à saisir vos coordonnées bancaires.' mod='atos'}
</div>
<div class="logo-payment img-paylib"></div>
</a>
</div>
</div>
{literal}
<script>
// var ua = navigator.userAgent;
// var event = "click";
// if(ua.match(/iPad/i) || ua.match(/iPhone/i)){
// event = "touchstart";
// }else{
// event = "click";
// }
$('.sendLink').on('click touchstart', function(e) {
sendLink($(this).attr('id'));
});
function sendLink(e){
$('[name="'+e+'"]').trigger("click");
}
</script>
{/literal}
<style>
p.payment_module.paypal a
{ldelim}
padding-left:17px;
{rdelim}
</style>
{else}
<p class="payment_module">
<a href="javascript:void(0)" onclick="$('#paypal_payment_form').submit();" id="paypal_process_payment" title="{l s='Pay with PayPal' mod='paypal'}">
{if isset($use_mobile) && $use_mobile}
<img src="{$base_dir_ssl}modules/paypal/img/logos/express_checkout_mobile/CO_{$PayPal_lang_code}_orange_295x43.png" />
{else}
{if isset($logos.LocalPayPalHorizontalSolutionPP) && $PayPal_payment_method == $PayPal_integral}
<img src="{$logos.LocalPayPalHorizontalSolutionPP}" alt="{$PayPal_content.payment_choice|escape:'htmlall':'UTF-8'}" height="48px" />
{else}
<img src="{$logos.LocalPayPalLogoMedium}" alt="{$PayPal_content.payment_choice|escape:'htmlall':'UTF-8'}" />
{/if}
{$PayPal_content.payment_choice}
{/if}
</a>
</p>
{/if}
<form id="paypal_payment_form" action="{$base_dir_ssl}modules/paypal/express_checkout/payment.php" data-ajax="false" title="{l s='Pay with PayPal' mod='paypal'}" method="post">
<input type="hidden" name="express_checkout" value="{$PayPal_payment_type|escape:'htmlall':'UTF-8'}"/>
<input type="hidden" name="current_shop_url" value="{$PayPal_current_page|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="bn" value="{$PayPal_tracking_code|escape:'htmlall':'UTF-8'}" />
</form>