bebeboutik/modules/paybox/hookpayment.tpl

126 lines
5.8 KiB
Smarty
Raw Normal View History

2016-04-06 15:52:14 +02:00
<div class="payment_module payment_paybox">
<div class="inner">
<div class="input_radio">
<div class="hidden">
2017-06-27 12:10:10 +02:00
<form id="paybox_form" method="POST" action="{$pbx_paybox}">
2017-06-22 11:38:36 +02:00
<input type="hidden" name="PBX_SITE" value="{$pbx_site}">
<input type="hidden" name="PBX_RANG" value="{$pbx_rang}">
<input type="hidden" name="PBX_IDENTIFIANT" value="{$pbx_id}">
<input type="hidden" name="PBX_LANGUE" value="{$pbx_langue}">
<input type="hidden" name="PBX_TOTAL" value="{$pbx_total}">
<input type="hidden" name="PBX_DEVISE" value="{$pbx_devise}">
<input type="hidden" name="PBX_CMD" value="{$pbx_cmd}">
<input type="hidden" name="PBX_PORTEUR" value="{$pbx_porteur}">
2017-06-27 12:10:10 +02:00
<input type="hidden" name="PBX_REFABONNE" value="{$pbx_refabonne}">
2017-06-22 11:38:36 +02:00
<input type="hidden" name="PBX_RETOUR" value="{$pbx_retour}">
<input type="hidden" name="PBX_EFFECTUE" value="{$pbx_confurl}">
<input type="hidden" name="PBX_ANNULE" value="{$pbx_cancelurl}">
<input type="hidden" name="PBX_REFUSE" value="{$pbx_confurl}">
2017-06-27 12:10:10 +02:00
<input type="hidden" name="PBX_REPONDRE_A" value="{$pbx_ipn}">
<input type="hidden" name="PBX_3DS" value="{$pbx_3ds}">
2017-06-22 11:38:36 +02:00
<input type="hidden" name="PBX_HASH" value="{$pbx_hash}">
<input type="hidden" name="PBX_TIME" value="{$pbx_time}">
<input type="hidden" name="PBX_HMAC" value="{$pbx_hmac}">
</form>
2017-06-27 12:10:10 +02:00
{if $pbx_refabonne_save}
<form id="paybox_form_save" method="POST" action="{$pbx_paybox}">
2017-06-22 11:38:36 +02:00
<input type="hidden" name="PBX_SITE" value="{$pbx_site}">
<input type="hidden" name="PBX_RANG" value="{$pbx_rang}">
<input type="hidden" name="PBX_IDENTIFIANT" value="{$pbx_id}">
<input type="hidden" name="PBX_LANGUE" value="{$pbx_langue}">
<input type="hidden" name="PBX_TOTAL" value="{$pbx_total}">
<input type="hidden" name="PBX_DEVISE" value="{$pbx_devise}">
<input type="hidden" name="PBX_CMD" value="{$pbx_cmd}">
<input type="hidden" name="PBX_PORTEUR" value="{$pbx_porteur}">
<input type="hidden" name="PBX_REFABONNE" value="{$pbx_refabonne_save}">
<input type="hidden" name="PBX_RETOUR" value="{$pbx_retour_save}">
<input type="hidden" name="PBX_EFFECTUE" value="{$pbx_confurl}">
<input type="hidden" name="PBX_ANNULE" value="{$pbx_cancelurl}">
<input type="hidden" name="PBX_REFUSE" value="{$pbx_confurl}">
2017-06-27 12:10:10 +02:00
<input type="hidden" name="PBX_REPONDRE_A" value="{$pbx_ipn}">
<input type="hidden" name="PBX_3DS" value="{$pbx_3ds}">
2017-06-22 11:38:36 +02:00
<input type="hidden" name="PBX_HASH" value="{$pbx_hash}">
<input type="hidden" name="PBX_TIME" value="{$pbx_time}">
<input type="hidden" name="PBX_HMAC" value="{$pbx_hmac_save}">
2016-04-06 15:52:14 +02:00
</form>
2017-06-27 12:10:10 +02:00
{/if}
2016-04-06 15:52:14 +02:00
</div>
2016-09-21 16:21:32 +02:00
<input type="radio" name="paiement-method" data-module-name="paybox" value="">
2016-04-06 15:52:14 +02:00
</div>
<div class="img_payment">
2017-03-09 12:35:04 +01:00
<img src="{$base_dir_ssl}modules/paybox/paiement_{$cookie->id_lang}.png" alt="{l s='Pay with Paybox' mod='paybox'}" />
2016-04-06 15:52:14 +02:00
</div>
<div class="label">
<span class="title_payment">{$pbx_text}</span>
2016-07-15 17:49:13 +02:00
<span class="save_info">
2016-07-18 11:45:18 +02:00
<input type="checkbox" id="save_info_paybox" data-change="save_info_paybox">
2016-07-15 17:49:13 +02:00
<label for="save_info_paybox">{l s='Save my card information for future payments' mod='paybox'}</label><span class="paiement_info_lightbox paybox_info">?</span>
</span>
</div>
2016-04-06 15:52:14 +02:00
</div>
2016-07-15 17:49:13 +02:00
2016-10-11 11:48:25 +02:00
{if $paybox_cards}
2016-07-15 17:49:13 +02:00
<div class="account_payment">
2016-09-15 15:24:10 +02:00
<p class="title">{l s='You have registered cards, you can use them to pay' mod='paybox'}</p>
2016-09-14 16:10:41 +02:00
{foreach from=$paybox_cards item=account}
2016-07-15 17:49:13 +02:00
<div class="box_account">
<div class="hidden">
<form id="paybox_payment_form" action="{$pbx_link_plus}" data-ajax="false" title="{l s='Pay with Paybox' mod='paybox'}" method="post">
<input type="hidden" name="id_paybox_card" value="{$account.id_paybox_card}"/>
</form>
</div>
2016-09-27 10:28:39 +02:00
<input data-module-name="paybox-direct" type="radio" value="{$base_dir_ssl}modules/paybox/direct_paiement.php?id_paybox_card={$account.id_paybox_card}" name="paiement-method" id="paybox_{$account.id_paybox_card}">
2016-07-15 17:49:13 +02:00
<label for="paybox_{$account.id_paybox_card}">{$account.payment_type} {$account.value} - {$account.date_validity}</label>
</div>
{/foreach}
</div>
{/if}
2016-07-18 11:45:18 +02:00
<div class="overlay_bbb info_paybox"></div>
<div class="box_add_to_cart payment_info_paybox">
<div class="content">
<h3>{l s='Mémorisation de vos données bancaires' mod='paybox'}</h3>
<div id="close_add_to_cart" class="close">
<img alt="{l s='Fermer la fenètre'}" src="{$img_dir}close.jpg">
</div>
<div class="content_box">
<p>
2016-09-14 16:10:41 +02:00
{l s='Lors du passage d\'une commande, vous pouvez choisir de mémoriser vos coordonnées de carte bancaire. Ces dernières seront alors enregistrées sur les serveurs sécurisés de notre banque le Crédit Agricole et son partenaire Paybox. Votre compte enregistré vous sera proposé pour vos prochaines commandes sans que vous n\'ayez besoin de saisir de nouveau vos données.' mod='paybox'}
2016-07-18 11:45:18 +02:00
</p>
<p>
2016-09-14 16:10:41 +02:00
{l s='Quelle que soit l\'option choisie, seul notre banque le Crédit Agricole et son partenaire Paybox ont accès à vos informations, et en aucun cas Bébé Boutik.' mod='paybox'}
2016-07-18 11:45:18 +02:00
</p>
<p>
{l s='Vous pouvez à tout moment voir et supprimer vos cartes enregistrées sur la page « Gérer mes moyens de paiement » dans le menu « Mon compte ».' mod='paybox'}
</p>
</div>
</div>
</div>
</div>
{literal}
<script>
$(document).ready(function(){
if ($('#save_info_paybox').is(':checked')) {
$('#save_paybox').val('1');
} else {
$('#save_paybox').val('0');
}
$('.paybox_info').live('click', function(){
$('.info_paybox').fadeIn();
$('.payment_info_paybox').fadeIn();
});
$('#save_info_paybox').change(function(){
if ($(this).is(':checked')) {
$('#save_paybox').val('1');
} else {
$('#save_paybox').val('0');
}
});
});
</script>
{/literal}