Initial commit

This commit is contained in:
2019-11-20 07:44:43 +01:00
commit 5bf49c4a81
41188 changed files with 5459177 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="alert alert-warning">{l s='Logs with order ID will not be erased.' mod='paypal'}</div>

View File

@@ -0,0 +1,33 @@
<?php
/**
* NOTICE OF LICENSE
*
* This source file is subject to a commercial license from SARL 202 ecommence
* Use, copy, modification or distribution of this source file without written
* license agreement from the SARL 202 ecommence is strictly forbidden.
* In order to obtain a license, please contact us: tech@202-ecommerce.com
* ...........................................................................
* INFORMATION SUR LA LICENCE D'UTILISATION
*
* L'utilisation de ce fichier source est soumise a une licence commerciale
* concedee par la societe 202 ecommence
* Toute utilisation, reproduction, modification ou distribution du present
* fichier source sans contrat de licence ecrit de la part de la SARL 202 ecommence est
* expressement interdite.
* Pour obtenir une licence, veuillez contacter 202-ecommerce <tech@202-ecommerce.com>
* ...........................................................................
*
* @author 202-ecommerce <tech@202-ecommerce.com>
* @copyright Copyright (c) 202-ecommerce
* @license Commercial license
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,33 @@
<?php
/**
* NOTICE OF LICENSE
*
* This source file is subject to a commercial license from SARL 202 ecommence
* Use, copy, modification or distribution of this source file without written
* license agreement from the SARL 202 ecommence is strictly forbidden.
* In order to obtain a license, please contact us: tech@202-ecommerce.com
* ...........................................................................
* INFORMATION SUR LA LICENCE D'UTILISATION
*
* L'utilisation de ce fichier source est soumise a une licence commerciale
* concedee par la societe 202 ecommence
* Toute utilisation, reproduction, modification ou distribution du present
* fichier source sans contrat de licence ecrit de la part de la SARL 202 ecommence est
* expressement interdite.
* Pour obtenir une licence, veuillez contacter 202-ecommerce <tech@202-ecommerce.com>
* ...........................................................................
*
* @author 202-ecommerce <tech@202-ecommerce.com>
* @copyright Copyright (c) 202-ecommerce
* @license Commercial license
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,31 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert">×</button>
{l s='Your Braintree account is currently configured to accept payments on the Sandbox' mod='paypal'}
(<b>{l s='test environment' mod='paypal'}</b>).
{l s='Any transaction will be fictitious. Disable the option, to accept actual payments (production environment) and log in with your PayPal credentials' mod='paypal'}
</div>

View File

@@ -0,0 +1,31 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert">×</button>
{l s='Your PayPal account is currently configured to accept payments on the Sandbox' mod='paypal'}
(<b>{l s='test environment' mod='paypal'}</b>).
{l s='Any transaction will be fictitious. Disable the option, to accept actual payments (production environment) and log in with your PayPal credentials' mod='paypal'}
</div>

View File

@@ -0,0 +1,78 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="container-fluid">
<div class="paypal_block_info panel">
<p>{l s='If you encounter rounding issues with your orders, please change PrestaShop round mode in:' mod='paypal'} <a target="_blank" href="{$preference|escape:'javascript':'UTF-8'}}">{l s='Preferences > General' mod='paypal'}</a> {l s='then change for:' mod='paypal'}</p>
<p><b>{l s='Round mode: "Round up away from zero, when it is half way there (recommended) "' mod='paypal'}</b></p>
<p><b>{l s='Round type: "Round on each item"' mod='paypal'}</b></p>
</div>
</div>
<div style="display: none;">
<div id="content-rounding-settings">
<form action="{$return_url|escape:'javascript':'UTF-8'}" method="post" id="credential-configuration" class="bootstrap">
<h4>{l s='Warning' mod='paypal'}</h4>
<p>{l s='Your product rounding settings are not compliant with PayPal module.' mod='paypal'}</p>
<p style='margin-bottom: 30px;'>{l s='Without modification of your PrastaShop configuration, PayPal will round items from cart to your customers.' mod='paypal'}</p>
<p>
<button class="btn btn-default" onclick="$.fancybox.close();return false;">{l s='I understand' mod='paypal'}</button>
<button class="btn btn-info" name="save_rounding_settings">{l s='Change rounding settings' mod='paypal'}</button>
</p>
</form>
</div>
</div>
<script type="text/javascript">
function display_rounding()
{
$.fancybox.open([
{
type: 'inline',
autoScale: true,
minHeight: 30,
content: $('#content-rounding-settings').html(),
}
]);
}
$(document).ready(function(){
var need_rounding = {$need_rounding|escape:'html':'UTF-8'};
$('#configuration_form_2 input[name=paypal_sandbox]').change(function(event) {
sandbox = $('#configuration_form_2 input[name=paypal_sandbox]:checked').val();
if (need_rounding && sandbox == 0) {
display_rounding();
}
});
});
</script>

View File

@@ -0,0 +1,549 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div dir="ltr" style="text-align: left;" trbidi="on">
<script type="text/javascript">
(function(d, s, id){
var js, ref = d.getElementsByTagName(s)[0];
if (!d.getElementById(id)){
js = d.createElement(s); js.id = id; js.async = true;
js.src = "https://www.paypal.com/webapps/merchantboarding/js/lib/lightbox/partner.js";
ref.parentNode.insertBefore(js, ref);
}
}(document, "script", "paypal-js"));
</script>
</div>
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert">×</button>
{l s='Starting July 1st, 2019, Braintree payment solution will be separated from PayPal module. There will be 2 different modules: PayPal official (v5.x) and Braintree official (v1.x). Both modules will be available for free on Prestashop Addons.' mod='paypal'} </br>
{l s='Braintree users: youll be required to install the new module (Braintree official (v1.x). It will be possible to transfer quickly your current module configurations from the current version of the PayPal module to the new Braintree module without any impact to your business. New exciting features will come soon!.' mod='paypal'} </br>
{l s='PayPal payment solution: No changes & no impacts on your business. You can simply update the module to latest version (PayPal official (v5.x)) for getting new features & bug fixes.' mod='paypal'}
</div>
<div class="container-fluid paypal-nav">
<ul class="nav nav-pills navbar-separator">
<li {if !isset($ec_paypal_active) && !isset($ec_card_active) && !isset($bt_active) && !isset($ppp_active)}class="active"{/if}><a data-toggle="pill" href="#paypal_conf"><span>{l s='Products' mod='paypal'}</span></a></li>
<li {if isset($ec_paypal_active) || isset($ec_card_active) || isset($bt_active) || isset($ppp_active)}class="active"{/if}><a data-toggle="pill" href="#paypal_params"><span>{l s='Settings' mod='paypal'}</span></a></li>
<li><a data-toggle="pill" href="#paypal_help"><span>{l s='Help' mod='paypal'}</span></a></li>
</ul>
<div class="tab-content">
<div id="paypal_conf" class="tab-pane fade {if !isset($ec_paypal_active) && !isset($ec_card_active) && !isset($bt_active) && !isset($ppp_active)}in active{/if}">
<div class="box half left">
<div class="logo">
<img src="{$path|escape:'html':'UTF-8'}/views/img/paypal_btm.png" alt="" />
<div>{l s='The smart choice for business' mod='paypal'}</div>
</div>
<ul class="tick">
<li><span class="paypal-bold">{l s='Target more customers' mod='paypal'}</span><br />{l s='More than 200 million PayPal active users worldwide' mod='paypal'}.</li>
<li><span class="paypal-bold">{l s='Truly global' mod='paypal'}</span><br />{l s='Access a whole world of customers. PayPal is available in more than 200 markets and in 25 currencies' mod='paypal'}.</li>
<li><span class="paypal-bold">{l s='Accept all types of payments' mod='paypal'}</span><br />{l s='Use PayPal with simple buy button or also payment by card due to Braintree (un service PayPal)' mod='paypal'}.</li>
<li><span class="paypal-bold">{l s='Safety' mod='paypal'}</span><br />{l s='Protect your profit from the risks of fraud thanks to our program of' mod='paypal'} <a target="_blank" href="https://www.paypal.com/{$iso_code|escape:'html':'UTF-8'}/webapps/mpp/ua/useragreement-full#011">{l s='Seller Protection' mod='paypal'}</a>.</li>
</ul>
</div>
<div class="box half right">
<div class="info">
<p class="paypal-bold">{l s='Merchant Country' mod='paypal'} {$country|escape:'html':'UTF-8'}</p>
<p><i>
{l s='To modify country : ' mod='paypal'}
<a target="_blank" href="{$localization|escape:'html':'UTF-8'}">{l s='International > Localization' mod='paypal'}</a>
</i></p>
</div>
</div>
<div style="clear:both;"></div>
<div style="clear:both;"></div>
<div class="active-products">
<p><b>{l s='2 PayPal products selected for you' mod='paypal'}</b></p>
<div class="col-sm-6">
<div class="panel {if isset($ec_paypal_active) && $ec_paypal_active}active-panel{/if}">
<img class="paypal-products" src="{$path|escape:'html':'UTF-8'}/views/img/paypal.png">
<p>
{l s='Accept PayPal payments, you can optimize your conversion rate.' mod='paypal'}
</p>
<p><ul>
<li>{l s='Fast, simple & secure, used by over 200 million active users' mod='paypal'}</li>
<li>{l s='OneTouch' mod='paypal'}&trade; {l s='optimizes your conversion rate up to 87.5%.' mod='paypal'}
{l s='Rate with OneTouch' mod='paypal'}&trade; {l s='in theme of comScore, 4th trilestre 2015 in United States' mod='paypal'}</li>
<li>{l s='Fully optimized for mobile payments' mod='paypal'}</li>
<li>{l s='Benefit of in-context checkout so your buyers never leave your site' mod='paypal'}</li>
<li>{l s='With our Seller Protection Program and advanced fraud screening, xe can protect your business' mod='paypal'}</li>
</ul></p>
<p>
<a target="_blank" href="https://www.paypal.com/{$iso_code|escape:'html':'UTF-8'}/webapps/mpp/express-checkout">{l s='More Information' mod='paypal'}</a>
</p>
<div class="bottom">
<img src="{$img_checkout|escape:'html':'UTF-8'}" class="product-img">
<a class="btn btn-default pull-right"
{if $country_iso == 'BR' || $country_iso == 'IN' || $country_iso == 'MX' || $country_iso == 'JP'}
href="#" onclick="display_popup('EC', 0)"
{else}
href="{$return_url|escape:'html':'UTF-8'}&method=EC&with_card=0{if isset($ec_paypal_active) && $ec_paypal_active}&modify=1{/if}"
{/if}>
{if isset($ec_paypal_active) && $ec_paypal_active}{l s='Modify' mod='paypal'}{else}{l s='Activate' mod='paypal'}{/if}
</a>
</div>
</div>
</div>
{if !isset($braintree_available) && !isset($ppp_available)}
<div class="col-sm-6">
<div class="panel {if isset($ec_active) && $ec_active && isset($ec_card_active) && $ec_card_active}active-panel{/if}">
<img class="paypal-products" src="{$path|escape:'html':'UTF-8'}/views/img/paypal.png">
<p>
{l s='Accept credit cards, debit cards and PayPal payments' mod='paypal'}
</p>
<p><ul>
<li>{l s='Fast, simple & secure, used by over 200 million active users' mod='paypal'}</li>
<li>{l s='OneTouch' mod='paypal'}&trade; {l s='optimizes your conversion rate up to 87.5%.' mod='paypal'}
{l s='Rate with OneTouch' mod='paypal'}&trade; {l s='in theme of comScore, 4th trilestre 2015 in United States' mod='paypal'}</li>
<li>{l s='Fully optimized for mobile payments' mod='paypal'}</li>
<li>{l s='Benefit of in-context checkout so your buyers never leave your site' mod='paypal'}</li>
<li>{l s='With our Seller Protection Program and advanced fraud screening, xe can protect your business' mod='paypal'}</li>
</ul></p>
<p><a target="_blank" href="https://www.paypal.com/{$iso_code|escape:'html':'UTF-8'}/webapps/mpp/express-checkout">{l s='More Information' mod='paypal'}</a></p>
<div class="bottom">
<img src="{$path|escape:'html':'UTF-8'}/views/img/paypal_btm.png" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/visa.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/mastercard.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/maestro.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/jcb.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/discover.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/amex.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/diners.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/unionpay.svg" class="product-img">
<a class="btn btn-default pull-right"
{if $country_iso == 'BR' || $country_iso == 'IN' || $country_iso == 'MX' || $country_iso == 'JP'}
href="#" onclick="display_popup('EC', 1)"
{else}
href="{$return_url|escape:'html':'UTF-8'}&method=EC&with_card=1{if isset($ec_active) && $ec_active && isset($ec_card_active) && $ec_card_active}&modify=1{/if}"
{/if}>
{if isset($ec_active) && $ec_active && isset($ec_card_active) && $ec_card_active}{l s='Modify' mod='paypal'}{else}{l s='Activate' mod='paypal'}{/if}
</a>
</div>
</div>
</div>
{/if}
{if isset($braintree_available)}
<div class="col-sm-6">
<div class="panel {if isset($bt_paypal_active) && $bt_paypal_active}active-panel{/if}">
<img class="paypal-products" src="{$path|escape:'html':'UTF-8'}/views/img/braintree-paypal.png">
<p>
{l s='Accept PayPal, debit and credit card payments via Braintree (a PayPal service)' mod='paypal'}.
</p>
<p><ul>
<li>{l s='Get the best of PayPal & Braintree in a single solution' mod='paypal'}</li>
<li>{l s='Benefit of PayPal\'s OneTouch' mod='paypal'}&trade; {l s='conversion rate improvements, in-context payments & Seller Protection Program' mod='paypal'}</li>
<li>{l s='Offer debit and credit card payments with all major global card networks' mod='paypal'}</li>
<li>{l s='No monthly or setup fee - check PayPal\'s & Braintree\'s pricing' mod='paypal'}</li>
<li>{l s='Protect your payments with 3D Secure & PCI DSS v3.0 SAQ-A compliance' mod='paypal'}</li>
</ul></p>
<p><a target="_blank" href="https://www.paypal.com/{$iso_code|escape:'html':'UTF-8'}/webapps/mpp/hosted">{l s='More Information' mod='paypal'}</a></p>
<div class="bottom">
<img src="{$path|escape:'html':'UTF-8'}/views/img/paypal_btm.png" class="product-img"> <b>+</b>
<img src="{$path|escape:'html':'UTF-8'}/views/img/visa.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/mastercard.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/maestro.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/jcb.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/discover.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/amex.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/diners.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/unionpay.svg" class="product-img">
<a class="btn btn-default pull-right" href="{$return_url|escape:'html':'UTF-8'}&method=BT&with_paypal=1{if isset($bt_paypal_active) && $bt_paypal_active}&modify=1{/if}">{if isset($bt_paypal_active) && $bt_paypal_active}{l s='Modify' mod='paypal'}{else}{l s='Activate' mod='paypal'}{/if}</a>
</div>
</div>
</div>
{/if}
{if isset($ppp_available)}
<div class="col-sm-6">
<div class="panel {if isset($ppp_active)}active-panel{/if}">
<img class="paypal-products" src="{$path|escape:'html':'UTF-8'}/views/img/paypal.png">
<p>
{l s='PayPal Plus' mod='paypal'}
</p>
<p><ul>
<li>{l s='Get the best of PayPal & Braintree in a single solution' mod='paypal'}</li>
<li>{l s='Benefit of PayPal\'s OneTouch' mod='paypal'}&trade; {l s='conversion rate improvements, in-context payments & Seller Protection Program' mod='paypal'}</li>
<li>{l s='Offer debit and credit card payments with all major global card networks' mod='paypal'}</li>
<li>{l s='No monthly or setup fee - check PayPal\'s & Braintree\'s pricing' mod='paypal'}</li>
<li>{l s='Protect your payments with 3D Secure & PCI DSS v3.0 SAQ-A compliance' mod='paypal'}</li>
</ul></p>
<p><a target="_blank" href="https://www.paypal.com/webapps/mpp/standard">{l s='More Information' mod='paypal'}</a></p>
<div class="bottom">
<img src="{$path|escape:'html':'UTF-8'}/views/img/paypal.png" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/visa.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/mastercard.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/amex.svg" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/ppp-bank-logo.png" class="product-img">
<img src="{$path|escape:'html':'UTF-8'}/views/img/kauf.png" class="product-img">
<a class="btn btn-default pull-right" href="#" onclick="display_popup('PPP', 0)">{if isset($ppp_active)}{l s='Modify' mod='paypal'}{else}{l s='Activate' mod='paypal'}{/if}</a>
</div>
</div>
</div>
{/if}
</div>
<div style="clear:both;"></div>
<div class="blue">
<div class="row-fluid" id="rtb1">
<header class="containerCentered center-text">
<h2 class="pulloutHeadline ">{l s='Find out why 17 million businesses worldwide choose PayPal.' mod='paypal'}</h2>
</header>
<div class="containerCentered">
<div class="span4">
<h2 class="contentHead large h3">{l s='Safer and more protected' mod='paypal'}</h2>
<p class="contentPara">{l s='With our Seller Protection and advanced fraud screening, we can protect your business.' mod='paypal'}</p>
</div>
<div class="span4">
<h2 class="contentHead large h3">{l s='Easy and convenient' mod='paypal'}</h2>
<p class="contentPara">{l s='Customers need just an email address and password or mobile number and PIN to pay quickly and more securely.' mod='paypal'}</p>
</div>
<div class="span4">
<h2 class="contentHead large h3">{l s='Preferred by customers' mod='paypal'}</h2>
<p class="contentPara">{l s='Were the smart choice: Great Britains No.1 preferred online and mobile payment method' mod='paypal'}<sup>4</sup>.
{l s='For invaluable insights into what makes British shoppers tick' mod='paypal'},
<a data-pa-click="link|shopping-habits" href="https://www.paypal.com/uk-shopping-habits">{l s='click here' mod='paypal'}</a>.</p>
</div>
</div>
</div>
<div class="row-fluid" id="rtb2">
<div class="containerCentered">
<div class="span4">
<h2 class="contentHead large h3">{l s='Truly global' mod='paypal'}</h2>
<p class="contentPara">{l s='Access a whole world of customers. PayPal is available in 202 countries and markets, and in 25 currencies.' mod='paypal'}</p>
</div>
<div class="span4">
<h2 class="contentHead large h3">{l s='Simple to integrate' mod='paypal'}</h2>
<p class="contentPara">{l s='Works with all major shopping carts and ecommerce platforms.' mod='paypal'}</p>
</div>
<div class="span4">
<h2 class="contentHead large h3">{l s='24/7 customer support' mod='paypal'}</h2>
<p class="contentPara">{l s='Whatever your query, we\'ve got it covered. Online or on the phone, we\'re here to help.' mod='paypal'}</p>
</div>
</div>
</div>
</div>
</div>
<div id="paypal_params" class="tab-pane fade col-sm-12 {if isset($ec_paypal_active) || isset($ec_card_active) || isset($bt_active) || isset($ppp_active)}in active{/if}">
{if isset($ec_paypal_active) || isset($ec_card_active) || isset($bt_active) || isset($ppp_active)}
<div class="panel parametres">
<div class="panel-body">
<div class="col-sm-8 help-left">
{if isset($ec_paypal_active) && $ec_paypal_active}
<img src="{$path|escape:'html':'UTF-8'}/views/img/paypal.png">
<p>
{l s='Accept PayPal payments, you can optimize your conversion rate.' mod='paypal'} : {$active_products|escape:'html':'UTF-8'}
</p>
<p><ul>
<li>{l s='Fast, simple & secure, used by over 200 million active users' mod='paypal'}</li>
<li>{l s='OneTouch' mod='paypal'}&trade; {l s='optimizes your conversion rate up to 87.5%.' mod='paypal'}
{l s='Rate with OneTouch' mod='paypal'}&trade; {l s='in theme of comScore, 4th trimestre 2015 in United States' mod='paypal'}</li>
<li>{l s='Fully optimized for mobile payments' mod='paypal'}</li>
<li>{l s='Benefit of in-context checkout so your buyers never leave your site' mod='paypal'}</li>
<li>{l s='With our Seller Protection Program and advanced fraud screening, we can protect your business' mod='paypal'}</li>
</ul></p>
<p>
<a target="_blank" href="https://www.paypal.com/{$iso_code|escape:'html':'UTF-8'}/webapps/mpp/express-checkout">{l s='More Information' mod='paypal'}</a>
</p>
{elseif isset($ec_card_active) && $ec_card_active}
<img src="{$path|escape:'html':'UTF-8'}/views/img/paypal.png">
<p>
{l s='Accept credit cards, debit cards and PayPal payments' mod='paypal'} : {$active_products|escape:'html':'UTF-8'}
</p>
<p><ul>
<li>{l s='Fast, simple & secure, used by over 200 million active users' mod='paypal'}</li>
<li>{l s='OneTouch' mod='paypal'}&trade; {l s='optimizes your conversion rate up to 87.5%.' mod='paypal'}
{l s='Rate with OneTouch' mod='paypal'}&trade; {l s='in theme of comScore, 4th trilestre 2015 in United States' mod='paypal'}</li>
<li>{l s='Fully optimized for mobile payments' mod='paypal'}</li>
<li>{l s='Benefit of in-context checkout so your buyers never leave your site' mod='paypal'}</li>
<li>{l s='With our Seller Protection Program and advanced fraud screening, xe can protect your business' mod='paypal'}</li>
</ul></p>
<p><a target="_blank" href="https://www.paypal.com/{$iso_code|escape:'html':'UTF-8'}/webapps/mpp/express-checkout">{l s='More Information' mod='paypal'}</a></p>
{elseif isset($bt_paypal_active) && $bt_paypal_active}
<img class="paypal-products" src="{$path|escape:'html':'UTF-8'}/views/img/braintree-paypal.png">
<p>
{l s='Accept PayPal, debit and credit card payments via Braintree (a PayPal service)' mod='paypal'}.
</p>
<p><ul>
<li>{l s='Get the best of PayPal & Braintree in a single solution' mod='paypal'}</li>
<li>{l s='Benefit of PayPal\'s OneTouch' mod='paypal'}&trade; {l s='conversion rate improvements, in-context payments & Seller Protection Program' mod='paypal'}</li>
<li>{l s='Offer debit and credit card payments with all major global card networks' mod='paypal'}</li>
<li>{l s='No monthly or setup fee - check PayPal\'s & Braintree\'s pricing' mod='paypal'}</li>
<li>{l s='Protect your payments with 3D Secure & PCI DSS v3.0 SAQ-A compliance' mod='paypal'}</li>
</ul></p>
<p><a target="_blank" href="https://www.paypal.com/{$iso_code|escape:'html':'UTF-8'}/webapps/mpp/hosted">{l s='More Information' mod='paypal'}</a></p>
{elseif isset($bt_active) && !$bt_paypal_active && $bt_active}
<img class="paypal-products" src="{$path|escape:'html':'UTF-8'}/views/img/braintree-paypal.png">
<p>
{l s='Accept Braintree payments' mod='paypal'}
</p>
<p>
{l s='Your customers can pay with a selection of local and international debit and credit cards. Make online payments simple. PayPal customers can buy from you quickly if they use One Touch' mod='paypal'}&trade;
</p>
<p><a target="_blank" href="https://www.paypal.com/{$iso_code|escape:'html':'UTF-8'}/webapps/mpp/express-checkout">{l s='More Information' mod='paypal'}</a></p>
{elseif isset($ppp_available) && isset($ppp_active)}
<img class="paypal-products" src="{$path|escape:'html':'UTF-8'}/views/img/paypal.png">
<p>
{l s='PayPal Plus' mod='paypal'}
</p>
<p><ul>
<li>{l s='Get the best of PayPal & Braintree in a single solution' mod='paypal'}</li>
<li>{l s='Benefit of PayPal\'s OneTouch' mod='paypal'}&trade; {l s='conversion rate improvements, in-context payments & Seller Protection Program' mod='paypal'}</li>
<li>{l s='Offer debit and credit card payments with all major global card networks' mod='paypal'}</li>
<li>{l s='No monthly or setup fee - check PayPal\'s & Braintree\'s pricing' mod='paypal'}</li>
<li>{l s='Protect your payments with 3D Secure & PCI DSS v3.0 SAQ-A compliance' mod='paypal'}</li>
</ul></p>
<p><a target="_blank" href="https://www.paypal.com/{$iso_code|escape:'html':'UTF-8'}/webapps/mpp/hosted">{l s='More Information' mod='paypal'}</a></p>
{/if}
</div>
<div class="col-sm-3 help-right">
<p>
{l s='More Information' mod='paypal'} ?
<a target="_blank" href="{l s='https://www.paypal.com/fr/webapps/mpp/contact-us' mod='paypal'}">{l s='Contact us' mod='paypal'}</a>
</div>
</div>
</div>
{/if}
<div class="configuration-block"></div>
</div>
<div id="paypal_help" class="tab-pane fade col-sm-12">
{if isset($ec_paypal_active) || isset($ec_card_active) || isset($ppp_active)}
<p class="alert alert-warning">
{l s='If you have just created your PayPal account, check the email sent by PayPal to confirm your email address.' mod='paypal'}<br>
{l s='You must have a [1]PayPal Business[/1] Account. Otherwise, your personal account should be converted to a Business account.' tags=['<a href="https://www.paypal.com/us/webapps/mpp/set-up-paypal-business-account" target="_blank">'] mod='paypal'}
</p>
{elseif isset($bt_active) }
<p class="alert alert-warning">
{l s='If you have just created your Braintree account, check the email sent by Braintree to confirm your email address.' mod='paypal'}<br>
</p>
{/if}
{if isset($need_rounding) && $need_rounding}
{include file="./block_info.tpl"}
{/if}
<div class="panel help">
<ul class="tick">
<li class="paypal-bold li-padding">{l s='Discover module documentation before configuration' mod='paypal'}</li>
<div class="btn-padding form-group"">
<a target="_blank" href="https://addons.prestashop.com/documentation/e582dd0854d8994e815d6c0e8886e703bfdf7713" class="btn btn-default">
{l s='Access user documentation for module configuration.' mod='paypal'}
</a>
</div>
<li class="paypal-bold li-padding">{l s='Check requirements before installation' mod='paypal'}</li>
{l s='Are you using the required TLS version? Did you select a default country? Click on the button below and check if all requirements are completed!' mod='paypal'}
<div class="btn-padding form-group"">
<button name="submit-ckeck_requirements" class="btn btn-default" id="ckeck_requirements">{l s='Check requirements' mod='paypal'}</button>
<br><br>
<div class="action_response"></div>
</div>
<li class="paypal-bold li-padding">{l s='Check your transactions history log and potential errors.' mod='paypal'}</li>
<div class="btn-padding form-group"">
<a href="{$AdminPaypalProcessLogger_link|addslashes}"
class="btn btn-default"
target="_blank">{l s='Transaction log' mod='paypal'}</a>
</div>
<li class="paypal-bold li-padding">{l s='Do you still have any questions?' mod='paypal'}</li>
{l s='Contact us! We will be happy to help!' mod='paypal'}
<div class="btn-padding form-group"">
<a target="_blank" href="https://www.paypal.com/fr/webapps/mpp/contact-us" class="btn btn-default">
{l s='Contact our product team for any functional questions' mod='paypal'}
</a>
</div>
<div class="btn-padding form-group">
<a target="_blank" href="https://addons.prestashop.com/fr/contactez-nous?id_product=1748" class="btn btn-default">
{l s='Contact our technical support' mod='paypal'}
</a>
</div>
</ul>
</div>
</div>
</div>
</div>
{if isset($ppp_available)}
<div style="display: none;">
<div id="content-fancybox-configuration-PPP">
<form action="{$return_url|escape:'javascript':'UTF-8'}" method="post" id="credential-configuration" class="bootstrap">
<h4>{l s='API Credentials' mod='paypal'}</h4>
<p>{l s='In order to accept PayPal Plus payments, please fill your API REST credentials.' mod='paypal'}</p>
<ul>
<li>{l s='Access' mod='paypal'} <a target="_blank" href="https://developer.paypal.com/developer/applications/">{l s='https://developer.paypal.com/developer/applications/' mod='paypal'}</a></li>
<li>{l s='Log in or Create a business account' mod='paypal'}</li>
<li>{l s='Create a « REST API apps »' mod='paypal'}</li>
<li>{l s='Click « Show » en dessous de « Secret: »' mod='paypal'}</li>
<li>{l s='Copy/paste your « Client ID » and « Secret » below for each environment' mod='paypal'}</li>
</ul>
<hr/>
<input type="hidden" class="method" name="method"/>
<h4>{l s='Sandbox' mod='paypal'}</h4>
<p>
<label for="sandbox_client_id">{l s='Client ID' mod='paypal'}</label>
<input type="text" id="sandbox_client_id" name="sandbox[client_id]" value="{if isset($PAYPAL_SANDBOX_CLIENTID)}{$PAYPAL_SANDBOX_CLIENTID|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
<p>
<label for="sandbox_secret">{l s='Secret' mod='paypal'}</label>
<input type="password" id="sandbox_secret" name="sandbox[secret]" value="{if isset($PAYPAL_SANDBOX_SECRET)}{$PAYPAL_SANDBOX_SECRET|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
<h4>{l s='Live' mod='paypal'}</h4>
<ul>
<li>{l s='You can switch to "Live" environment on top right' mod='paypal'}</li>
</ul>
<p>
<label for="live_client_id">{l s='Client ID' mod='paypal'}</label>
<input type="text" id="live_client_id" name="live[client_id]" value="{if isset($PAYPAL_LIVE_CLIENTID)}{$PAYPAL_LIVE_CLIENTID|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
<p>
<label for="live_secret">{l s='Secret' mod='paypal'}</label>
<input type="password" id="live_secret" name="live[secret]" value="{if isset($PAYPAL_LIVE_SECRET)}{$PAYPAL_LIVE_SECRET|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
<hr/>
<p>
<button class="btn btn-default" onclick="$.fancybox.close();return false;">{l s='Cancel' mod='paypal'}</button>
<button class="btn btn-info" name="save_credentials">{l s='Confirm API Credentials' mod='paypal'}</button>
</p>
</form>
</div>
</div>
{/if}
{if $country_iso == 'BR' || $country_iso == 'IN' || $country_iso == 'MX' || $country_iso == 'JP'}
<div style="display: none;">
<div id="content-fancybox-configuration-EC">
<form action="{$return_url|escape:'javascript':'UTF-8'}" method="post" id="credential-configuration" class="bootstrap">
<h4>{l s='API Credentials' mod='paypal'}</h4>
<p>{l s='In order to accept PayPal payments, please fill your API NVP credentials.' mod='paypal'}</p>
<ul>
<li>{l s='Access' mod='paypal'}
<a target="_blank" href="https://www.{if $mode == 'SANDBOX'}sandbox.{/if}paypal.com/">https://www.{if $mode == 'SANDBOX'}sandbox.{/if}paypal.com/</a>
</li>
<li>{l s='Log in or Create a business account' mod='paypal'}</li>
<li>{l s='Access to' mod='paypal'} <a target="_blank" href="https://www.{if $mode == 'SANDBOX'}sandbox.{/if}paypal.com/businessprofile/mytools/apiaccess/firstparty/signature">{l s='API NVP/SOAP integration' mod='paypal'}</a></li>
<li>{l s='Click « Show » on the right of credentials' mod='paypal'}</li>
<li>{l s='Copy/paste your API credentials below for %s environment' sprintf=[$mode] mod='paypal'} </li>
</ul>
<hr/>
<input type="hidden" class="method" name="method"/>
<input type="hidden" id="with_card" name="with_card"/>
<h4>{l s='API Credentials for' mod='paypal'} {$mode}</h4>
<p>
<label for="api_username">{l s='API username' mod='paypal'}</label>
<input type="text" id="api_username" name="api_username" value="{if isset($api_username)}{$api_username|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
<p>
<label for="api_password">{l s='API password' mod='paypal'}</label>
<input type="password" id="api_password" name="api_password" value="{if isset($api_password)}{$api_password|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
<p>
<label for="api_signature">{l s='API signature' mod='paypal'}</label>
<input type="text" id="api_signature" name="api_signature" value="{if isset($api_signature)}{$api_signature|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
<p>
<label for="merchant_id">{l s='Merchant ID' mod='paypal'}</label>
<input type="text" id="merchant_id" name="merchant_id" value="{if isset($merchant_id)}{$merchant_id|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
<hr/>
<p>
<button class="btn btn-default" onclick="$.fancybox.close();return false;">{l s='Cancel' mod='paypal'}</button>
<button class="btn btn-info" name="save_credentials">{l s='Confirm API Credentials' mod='paypal'}</button>
</p>
</form>
</div>
</div>
{/if}
<script type="text/javascript">
function display_popup(method, with_card)
{
$('.method').val(method);
$('#with_card').val(with_card);
$.fancybox.open([
{
type: 'inline',
autoScale: true,
minHeight: 30,
content: $('#content-fancybox-configuration-'+method).html(),
}
]);
}
$(document).ready(function(){
$('#change_product').click(function(event) {
event.preventDefault();
$('a[href=#paypal_conf]').click();
});
$('.main_form').insertAfter($('.configuration-block'));
$('.bt_currency_form').insertAfter($('.main_form'));
$('.form_shortcut').insertAfter($('.main_form'));
$('.form_api_username').insertAfter($('.form_shortcut'));
$('input[name=paypal_ec_in_context]').on("change", function(){
if (this.value != 0) {
$('#config_logo-name').parents('.form-group').hide();
} else {
$('#config_logo-name').parents('.form-group').show();
}
});
if ($('input[name=paypal_ec_in_context]:checked').val() != 0) {
$('#config_logo-name').parents('.form-group').hide();
}
$('input[name=paypal_vaulting]').on("change", function(){
if (this.value == 0) {
$('#card_verification_on').parents('.form-group').hide();
} else {
$('#card_verification_on').parents('.form-group').show();
}
});
if ($('input[name=paypal_vaulting]:checked').val() == 0) {
$('#card_verification_on').parents('.form-group').hide();
}
var ssl_active = "{$ssl_active|escape:'htmlall':'UTF-8'}";
if ($('#config_logo-images-thumbnails').length && !ssl_active) {
$('#config_logo-images-thumbnails').after("{l s='An image is on a insecure (http) server and will not be shown on paypal' mod='paypal'}");
}
});
$("#ckeck_requirements").click( function() {
$.ajax({
url: 'ajax-tab.php',
dataType: 'json',
data : {
ajax : true,
controller: 'AdminModules',
configure:'paypal',
action : 'CheckRequirements',
token: token
},
success: function(data) {
if(data) {
$('.action_response').html(data);
} else {
$('.action_response').html('<p class="alert alert-success">{l s='Your shop configuration is OK. You can start to configure the PayPal module.' mod='paypal'}</p>');
}
}
});
});
</script>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,118 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{*Displaying a button or the iframe*}
<div class="row">
<div class="col-xs-12 col-md-10">
<div class="braintree-row-payment">
<div class="payment_module braintree-card">
<form action="{$braintreeSubmitUrl}" id="braintree-form" method="post">
{if isset($init_error)}
<div class="alert alert-danger">{$init_error|escape:'htmlall':'UTF-8'}</div>
<div id="logo_braintree_by_paypal"><img src="https://s3-us-west-1.amazonaws.com/bt-partner-assets/paypal-braintree.png" height="20px"></div>
{else}
{if isset($active_vaulting) && isset($payment_methods) && !empty($payment_methods)}
<div id="bt-vault-form">
<p><b>{l s='Choose your card' mod='paypal'}:</b></p>
<select name="bt_vaulting_token" class="form-control">
<option value="">{l s='Choose your card' mod='paypal'}</option>
{foreach from=$payment_methods key=method_key item=method}
<option value="{$method.token|escape:'htmlall':'UTF-8'}" {if $check3Dsecure} data-nonce="{$method.nonce}"{/if}>
{if $method.name}{$method.name|escape:'htmlall':'UTF-8'} - {/if}
{$method.info|escape:'htmlall':'UTF-8'}
</option>
{/foreach}
</select>
</div>
{/if}
<div id="block-card-number" class="block_field">
<div id="card-number" class="hosted_field"><div id="card-image"></div></div>
</div>
<div id="block-expiration-date" class="block_field half_block_field">
<div id="expiration-date" class="hosted_field"></div>
</div>
<div id="block-cvv" class="block_field half_block_field">
<div id="cvv" class="hosted_field"></div>
</div>
<input type="hidden" name="deviceData" id="deviceData"/>
<input type="hidden" name="client_token" value="{$braintreeToken|escape:'htmlall':'UTF-8'}">
<input type="hidden" name="liabilityShifted" id="liabilityShifted"/>
<input type="hidden" name="liabilityShiftPossible" id="liabilityShiftPossible"/>
<input type="hidden" name="payment_method_nonce" id="payment_method_nonce"/>
<input type="hidden" name="card_type" id="braintree_card_type"/>
<input type="hidden" name="payment_method_bt" value="{$method_bt|escape:'htmlall':'UTF-8'}"/>
<div class="paypal_clear"></div>
<div id="bt-card-error-msg" class="alert alert-danger"></div>
{if isset($active_vaulting) && $active_vaulting}
<div class="save-in-vault">
<input type="checkbox" name="save_card_in_vault" id="save_card_in_vault"/> <label for="save_card_in_vault"> {l s='Memorize my card' mod='paypal'}</label>
</div>
{/if}
<div id="logo_braintree_by_paypal"><img src="https://s3-us-west-1.amazonaws.com/bt-partner-assets/paypal-braintree.png" height="20px"></div>
{/if}
</form>
</div>
</div>
</div>
</div>
<script>
var authorization = '{$braintreeToken|escape:'htmlall':'UTF-8'}';
var bt_amount = {$braintreeAmount|escape:'htmlall':'UTF-8'};
var check3DS = {$check3Dsecure|escape:'htmlall':'UTF-8'};
var bt_translations = {
client:"{l s='Error create Client' mod='paypal'}",
card_nmb:"{l s='Card number' mod='paypal'}",
cvc:"{l s='CVC' mod='paypal'}",
date:"{l s='MM/YY' mod='paypal'}",
hosted:"{l s='Error create Hosted fields' mod='paypal'}",
empty:"{l s='All fields are empty! Please fill out the form.' mod='paypal'}",
invalid:"{l s='Some fields are invalid :' mod='paypal'}",
token:"{l s='Tokenization failed server side. Is the card valid?' mod='paypal'}",
network:"{l s='Network error occurred when tokenizing.' mod='paypal'}",
tkn_failed:"{l s='Tokenize failed' mod='paypal'}",
https:"{l s='3D Secure requires HTTPS.' mod='paypal'}",
load_3d:"{l s='Load 3D Secure Failed' mod='paypal'}",
request_problem:"{l s='There was a problem with your request.' mod='paypal'}",
failed_3d:"{l s='3D Secure Failed' mod='paypal'}",
empty_field:"{l s='is empty.' mod='paypal'}",
expirationDate:"{l s='Expiration Date' mod='paypal'}",
number:"{l s='card number' mod='paypal'}",
cvv:"{l s='CVV' mod='paypal'}",
};
</script>

View File

@@ -0,0 +1,94 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<!-- Header part menu -->
<head>
{block name='head'}
{include file='_partials/head.tpl'}
{/block}
</head>
<body>
{hook h='displayAfterBodyOpeningTag'}
<main>
<!-- Menu part-->
<header id="header">
{block name='header'}
{include file='_partials/header.tpl'}
{/block}
</header>
<!-- Header part ends -->
<section id="wrapper">
<div class="container">
<section id="main">
<section id="content" class="page-content card card-block">
{include file='_partials/breadcrumb.tpl'}
{if $method == 'BT'}
<h2>{l s='Error in Braintree' mod='paypal'}</h2>
{else}
<h2>{l s='Error in Paypal' mod='paypal'}</h2>
{/if}
<div class="table-responsive-row clearfix">
<p class="paypal_error_msg">
{if $error_msg == '' && $msg_long == ''}
{if $error_code}<span class="code">[{$error_code|escape:'htmlall':'UTF-8'}]</span>{/if}
{l s='Unexpected error occurred.' mod='paypal'}
{else}
{if $error_code}<span class="code">[{$error_code|escape:'htmlall':'UTF-8'}]</span>{/if}
{if $error_msg}<span class="short">{$error_msg|escape:'htmlall':'UTF-8'}</span>{/if}
<br>
{if $msg_long && $msg_long != $error_msg}
<span class="long">{l s='Additional error message : ' mod='paypal'}{$msg_long|escape:'htmlall':'UTF-8'}</span>
{/if}
{/if}
</p>
{if $show_retry}
<a class="btn btn-secondary" href="{$link->getPageLink('order', true)}">{l s='Try to pay again' mod='paypal'}</a>
{/if}
</div>
</section>
</section>
</div>
</section>
<!-- Footer starts -->
<footer id="footer">
{block name="footer"}
{include file="_partials/footer.tpl"}
{/block}
</footer>
<!-- Footer Ends -->
{block name='javascript_bottom'}
{include file="_partials/javascript.tpl" javascript=$javascript.bottom}
{/block}
{hook h='displayBeforeBodyClosingTag'}
</main>
</body>

View File

@@ -0,0 +1,29 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<p>{l s='Benefit from many PayPal advantages such as :' mod='paypal'}</p>
<p><img src="{$path|escape:'html':'UTF-8'}views/img/protected.png" style="height: 43px; padding-right: 10px;">{l s='Your orders are protected' mod='paypal'}*</p>
<p><img src="{$path|escape:'html':'UTF-8'}views/img/refund.png" style=" height: 43px; padding-right: 10px;">{l s='Return shipping refunded' mod='paypal'}*</p>
<p><i>{l s='* See conditions on PayPal website' mod='paypal'}</i></p>

View File

@@ -0,0 +1,28 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<p>{l s='You will be redirected to the PayPal website to process your card payment.' mod='paypal'}</p>
<p>{l s='PayPal secures your payment and protect your financial information with strong encryption tools.' mod='paypal'}</p>

View File

@@ -0,0 +1,65 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='customer/page.tpl'}
{block name='page_title'}
{l s='My payment methods' mod='paypal'}
{/block}
{block name='page_content'}
<!-- Page content -->
{if $payment_methods}
<form action="{$link->getModuleLink('paypal', 'account', ['process' => 'save'])}" method="post">
{foreach from=$payment_methods key=method_key item=payment_method}
{if $method_key == 'card-braintree'}<h3>{l s='Your cards' mod='paypal'}</h3>{/if}
{if $method_key == 'paypal-braintree'}<h3>{l s='Your paypal accounts' mod='paypal'}</h3>{/if}
{foreach from=$payment_method key=key item=method}
<p class="method">
{if $method.name}<b>{$method.name|escape:'htmlall':'UTF-8'} : </b>{/if}
{$method.info|escape:'htmlall':'UTF-8'}
<a href="{$link->getModuleLink('paypal', 'account', ['process' => 'delete', 'method' => {$method.method|escape:'htmlall':'UTF-8'}, 'id_method' => {$method.id_paypal_vaulting|escape:'htmlall':'UTF-8'}])}"><i class="material-icons">delete</i></a>
<br />
{if !$method.name}{l s='Add name' mod='paypal'}{else}{l s='Edit name' mod='paypal'}{/if}
<span class="edit_name" data-method_id="{$method.id_paypal_vaulting|escape:'htmlall':'UTF-8'}"><i class="material-icons">mode_edit</i></span>
<input type="text" value="{$method.name|escape:'htmlall':'UTF-8'}" name="name_{$method.id_paypal_vaulting|escape:'htmlall':'UTF-8'}" class="form-control" style="display: none"/>
</p>
{/foreach}
{/foreach}
<p><button class="btn btn-default" type="submit">{l s='Save' mod='paypal'} <i class="material-icons">save</i></button></p>
</form>
{else}
{l s='You don\'t have saved payment methods from Paypal' mod='paypal'}
{/if}
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function(){
$(document).on('click', '.edit_name', function(){
var methodId = $(this).data('method_id');
$('input[name=name_'+methodId+']').show();
});
});
</script>
{/block}

View File

@@ -0,0 +1,78 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="row">
<div class="col-xs-12 col-md-10">
<div class="paypal-braintree-row-payment">
<div class="payment_module paypal-braintree">
<form action="{$braintreeSubmitUrl}" id="paypal-braintree-form" method="post">
{include file="module:paypal/views/templates/front/payment_infos.tpl"}
{if isset($init_error)}
<div class="alert alert-danger">{$init_error}</div>
{else}
<input type="hidden" name="payment_method_nonce" id="paypal_payment_method_nonce"/>
<input type="hidden" name="payment_method_bt" value="{$bt_method|escape:'htmlall':'UTF-8'}"/>
<div id="paypal-button"></div>
<div id="paypal-vault-info"><p>{l s='You have to finish your payment done with your account PayPal:' mod='paypal'}</p></div>
{if isset($active_vaulting) && $active_vaulting}
<div class="save-in-vault">
<input type="checkbox" name="save_account_in_vault" id="save_account_in_vault"/> <label for="save_account_in_vault"> {l s='Memorize my PayPal account' mod='paypal'}</label>
</div>
{/if}
{if isset($active_vaulting) && isset($payment_methods) && !empty($payment_methods)}
<div id="bt-vault-form">
<p><b>{l s='Choose your PayPal account' mod='paypal'}:</b></p>
<select name="pbt_vaulting_token" class="form-control">
<option value="">{l s='Choose your paypal account' mod='paypal'}</option>
{foreach from=$payment_methods key=method_key item=method}
<option value="{$method.token|escape:'htmlall':'UTF-8'}">
{if $method.name}{$method.name|escape:'htmlall':'UTF-8'} - {/if}
{$method.info|escape:'htmlall':'UTF-8'}
</option>
{/foreach}
</select>
</div>
{/if}
{/if}
</form>
<div id="bt-paypal-error-msg" class="alert alert-danger"></div>
</div>
</div>
</div>
</div>
<script>
var paypal_braintree = {
authorization : '{$braintreeToken|escape:'htmlall':'UTF-8'}',
amount : {$braintreeAmount|escape:'htmlall':'UTF-8'},
mode : '{$mode|escape:'htmlall':'UTF-8'}',
currency : '{$currency|escape:'htmlall':'UTF-8'}'
};
paypal_braintree.translations = {
empty_nonce:"{l s='Click paypal button first' mod='paypal'}"
};
</script>

View File

@@ -0,0 +1,57 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<style>
#popup-ppp-waiting p{
font-size: 16px;
margin: 10px;
line-height: 1.5em;
color: #373a3c;
}
</style>
<div class="row">
<div class="col-xs-12 col-md-10">
<div class="paypal-plus-row-payment">
<div class="payment_module paypal-plus">
{include file="module:paypal/views/templates/front/payment_infos.tpl"}
<div id="ppplus" style="width: 100%;"> </div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
// no escape on url
var ppp_approval_url = '{$approval_url_ppp nofilter}';
var ppp_mode = '{$mode|escape:'htmlall':'UTF-8'}';
var ppp_language_iso_code = '{$ppp_language_iso_code|escape:'htmlall':'UTF-8'}';
var ppp_country_iso_code = '{$ppp_country_iso_code|escape:'htmlall':'UTF-8'}';
// no escape on url
var ajax_patch_url = '{$ajax_patch_url nofilter}';
var waiting_redirection = "{l s='In few seconds you will be redirected to PayPal. Please wait.' mod='paypal'}";
</script>

View File

@@ -0,0 +1,30 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<p id="paypal-es-checked" style="display: none">
{l s='You are about to pay with your PayPal account' mod='paypal'} {$paypal_account_email|escape:'htmlall':'UTF-8'}
</p>
<p id="paypal-ppp-checked" style="display: none">
{l s='You are about to pay with your PayPal account' mod='paypal'} {$paypal_account_email|escape:'htmlall':'UTF-8'}
</p>

View File

@@ -0,0 +1,42 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div id="container_express_checkout" style="float:right; margin: 10px 40px 0 0">
<form id="paypal_payment_form_cart" class="paypal_payment_form" action="{$action_url|escape:'htmlall':'UTF-8'}" title="{l s='Pay with PayPal' mod='paypal'}" method="post" data-ajax="false">
<input type="hidden" name="id_product" value="{$smarty.get.id_product|intval}" />
<input type="hidden" name="quantity" id="paypal_quantity" value=""/>
<input type="hidden" name="combination" value="" id="paypal_combination"/>
<input type="hidden" name="express_checkout" value="{$PayPal_payment_type|escape:'htmlall':'UTF-8'}"/>
<input type="hidden" name="current_shop_url" id="paypal_url_page" value="" />
<input type="hidden" id="in_context_checkout_enabled" value="0">
<input type="hidden" id="source_page" name="source_page" value="product">
<input type="hidden" id="es_cs_product_attribute" value="{$es_cs_product_attribute|escape:'htmlall':'UTF-8'}" />
<img id="payment_paypal_express_checkout" src="{$PayPal_img_esc|escape:'htmlall':'UTF-8'}" alt="{l s='PayPal' mod='paypal'}" style="cursor:pointer;" onclick="setInput();return false"/>
</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript" src="https://www.paypalobjects.com/api/checkout.js"></script>
<script type="text/javascript" src="{$shop_url}modules/paypal/views/js/shortcut.js"></script>

View File

@@ -0,0 +1,40 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div id="container_express_checkout" style="float:right; margin: 10px 40px 0 0">
<form id="paypal_payment_form_cart" class="paypal_payment_form" action="{$action_url|escape:'htmlall':'UTF-8'}" title="{l s='Pay with PayPal' mod='paypal'}" method="post" data-ajax="false">
<input type="hidden" name="id_product" value="{$smarty.get.id_product|intval}" />
<input type="hidden" name="quantity" id="paypal_quantity" value=""/>
<input type="hidden" name="combination" value="" id="paypal_combination"/>
<input type="hidden" name="express_checkout" value="{$PayPal_payment_type|escape:'htmlall':'UTF-8'}"/>
<input type="hidden" name="current_shop_url" id="paypal_url_page" value="" />
<input type="hidden" id="es_cs_product_attribute" value="{$es_cs_product_attribute|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="source_page" value="product">
<img id="payment_paypal_express_checkout" src="{$PayPal_img_esc|escape:'htmlall':'UTF-8'}" alt="{l s='PayPal' mod='paypal'}" style="cursor:pointer;" onclick="setInput();return false"/>
</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript" src="/modules/paypal/views/js/shortcut.js"></script>

View File

@@ -0,0 +1,38 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div id="container_express_checkout" style="float:right; margin: 10px 40px 0 0">
<form id="paypal_payment_form_cart" class="paypal_payment_form" action="{$action_url|escape:'htmlall':'UTF-8'}" title="{l s='Pay with PayPal' mod='paypal'}" method="post" data-ajax="false">
<input type="hidden" name="method" value="{$PayPal_payment_type|escape:'htmlall':'UTF-8'}"/>
<input type="hidden" name="current_shop_url" id="paypal_url_page" value="" />
<input type="hidden" id="in_context_checkout_enabled" value="0">
<input type="hidden" id="source_page" value="cart">
<img id="payment_paypal_express_checkout" src="{$PayPal_img_esc|escape:'htmlall':'UTF-8'}" alt="{l s='PayPal' mod='paypal'}" style="cursor:pointer;" onclick="setInput();return false"/>
</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript" src="https://www.paypalobjects.com/api/checkout.js"></script>
<script type="text/javascript" src="{$shop_url}modules/paypal/views/js/shortcut_cart.js"></script>

View File

@@ -0,0 +1,29 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="panel">
<h3>{l s='Payment logs' mod='paypal'}</h3>
{include file='./tableLogs.tpl'}
</div>

View File

@@ -0,0 +1,29 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="tab-pane" id="paypal">
<h4 class="visible-print">{l s='PayPal' mod='paypal'}</h4>
{include file='./tableLogs.tpl'}
</div>

View File

@@ -0,0 +1,32 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<li>
<a href="#paypal">
{l s='PayPal' mod='paypal'}
<span class="badge">{if isset($logs)}{$logs|@count}{else}0{/if}</span>
</a>
</li>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,30 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<li>
<a href="{$link->getModuleLink('paypal', 'account')|escape:'html':'UTF-8'}" title="{l s='My payment methods' mod='paypal'}">
{l s='My payment methods' mod='paypal'}
</a>
</li>

View File

@@ -0,0 +1,31 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a class="col-lg-4 col-md-6 col-sm-6 col-xs-12" id="paypal-link" href="{$link->getModuleLink('paypal', 'account')|escape:'html':'UTF-8'}" title="{l s='My payment methods' mod='paypal'}">
<span class="link-item">
<i class="material-icons">credit_card</i>
{l s='My payment methods' mod='paypal'}
</span>
</a>

View File

@@ -0,0 +1,62 @@
{*
* 2007-2019 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-2019 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 isset($error_msg)}
<div class="alert alert-danger">
{$error_msg|escape:'htmlall':'UTF-8'}
</div>
{/if}
<li id="paypal_transaction_id">
{if $method == 'BT'}
{l s='Braintree transaction id :' mod='paypal'}
{else}
{l s='Paypal transaction id :' mod='paypal'}
{/if}
{$transaction_id|escape:'htmlall':'UTF-8'}
</li>
{if isset($ppp_information)}
<dl>
<dd>
{l s='The bank name' mod='paypal'} : {$ppp_information->recipient_banking_instruction->bank_name|escape:'htmlall':'UTF-8'}
</dd>
<dd>
{l s='Account holder name' mod='paypal'} : {$ppp_information->recipient_banking_instruction->account_holder_name|escape:'htmlall':'UTF-8'}
</dd>
<dd>
{l s='IBAN' mod='paypal'} : {$ppp_information->recipient_banking_instruction->international_bank_account_number|escape:'htmlall':'UTF-8'}
</dd>
<dd>
{l s='BIC' mod='paypal'} : {$ppp_information->recipient_banking_instruction->bank_identifier_code|escape:'htmlall':'UTF-8'}
</dd>
<dd>
{l s='Amount due / currency' mod='paypal'} : {$ppp_information->amount->value|escape:'htmlall':'UTF-8'} {$ppp_information->amount->currency|escape:'htmlall':'UTF-8'}
</dd>
<dd>
{l s='Payment due date' mod='paypal'} : {$ppp_information->payment_due_date|escape:'htmlall':'UTF-8'}
</dd>
<dd>
{l s='Reference' mod='paypal'} : {$ppp_information->reference_number|escape:'htmlall':'UTF-8'}
</dd>
</dl>
{/if}

View File

@@ -0,0 +1,27 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script>
$('.kpi-container').after($('.paypal-warning').parents('.module_warning'));
</script>

View File

@@ -0,0 +1,57 @@
{*
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table class="table">
<thead>
<tr>
<th>{l s='Timestamp' mod='paypal'}</th>
<th>{l s='Timestamp PayPal' mod='paypal'}</th>
<th>{l s='Transaction ID' mod='paypal'}</th>
<th>{l s='Payment tool' mod='paypal'}</th>
<th>{l s='Description' mod='paypal'}</th>
</tr>
</thead>
<tbody>
{foreach from=$logs item=log}
<tr>
<td>
{$log->date_add|escape:'html':'utf-8'}
</td>
<td>
{$log->getDateTransaction()|escape:'html':'utf-8'}
</td>
<td>
<a href="{$log->getLinkToTransaction()|addslashes}" target="_blank">{$log->id_transaction|escape:'html':'utf-8'}</a>
</td>
<td>
{$log->tools|escape:'html':'utf-8'}
</td>
<td>
{$log->log|escape:'html':'utf-8'}
</td>
</tr>
{/foreach}
</tbody>
</table>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;