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;