download all files

This commit is contained in:
Roman Pyrih
2025-06-24 14:14:35 +02:00
parent ebed09c00b
commit 4c71b5d9c2
72007 changed files with 10407727 additions and 40029 deletions

View File

@@ -0,0 +1,117 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<div>
{if isset($method) &&
$method == 'PPP' ||
($method == 'EC' && (isset($country_iso) && in_array($country_iso, ['IN', 'JP']) == false))}
<p class="h3">
{if isset($accountConfigured) && $accountConfigured}<i class="icon-check text-success"></i>{/if}
{l s='PayPal Account' mod='paypal'}
{if isset($accountConfigured) && $accountConfigured}{l s='connected' mod='paypal'}{/if}
</p>
{if isset($accountConfigured) == false || $accountConfigured == false}
<p>
{l s='In order to activate the module, you must connect your existing PayPal account or create a new one.' mod='paypal'}
</p>
{/if}
{/if}
{if isset($accountConfigured) && $accountConfigured}
{if isset($method) && $method == 'MB'}
{include './mbCredentialsForm.tpl'}
{/if}
{if isset($country_iso) && in_array($country_iso, ['IN', 'JP'])}
<div class="modal-body">
<h4>{l s='API Credentials' mod='paypal'}</h4>
<p>{l s='In order to accept PayPal payments, please fill in 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 » below « 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" name="id_shop" value="{if isset($idShop)}{$idShop}{/if}"/>
<h4>{l s='API Credentials for' mod='paypal'} {$mode}</h4>
{include './ecCredentialFields.tpl'}
</div>
{/if}
{if isset($method) &&
$method == 'PPP' ||
($method == 'EC' && (isset($country_iso) && in_array($country_iso, ['IN', 'JP']) == false))}
<span class="btn btn-default pp__mt-5" id="logoutAccount">
<i class="icon-signout"></i>
{l s='Logout' mod='paypal'}
</span>
{/if}
{else}
{if isset($method) && $method == 'MB'}
{include './mbCredentialsForm.tpl'}
{elseif isset($country_iso) && in_array($country_iso, ['IN', 'JP'])}
<div class="modal-body">
<h4>{l s='API Credentials' mod='paypal'}</h4>
<p>{l s='In order to accept PayPal payments, please fill in 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 » below « 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" name="id_shop" value="{if isset($idShop)}{$idShop}{/if}"/>
<h4>{l s='API Credentials for' mod='paypal'} {$mode}</h4>
{include './ecCredentialFields.tpl'}
</div>
{elseif isset($method) && in_array($method, ['EC', 'PPP'])}
<a href="{$urlOnboarding|addslashes}"
target="_blank"
data-paypal-button
data-paypal-onboard-complete="onboardCallback"
class="btn btn-default spinner-button"
>
<i class="icon-signin"></i>
<div class="spinner pp__mr-1"></div>
{l s='Connect or create PayPal account' mod='paypal'}
</a>
<script src="{$paypalOnboardingLib|addslashes}"></script>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,32 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<div class="alert alert-{$type} {if isset($widthByContent) && $widthByContent}d-inline-block{/if} {if isset($class) && $class} {$class} {/if}">
{if isset($btnClose) && $btnClose}
<button type="button" class="close" data-dismiss="alert">×</button>
{/if}
{$message nofilter}
</div>

View File

@@ -0,0 +1,101 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<div class="block-preview-button-context pp__flex">
<div class="pp__py-2 pp__px-1">
<div class="pp__mb-2">
<input type="checkbox" {if isset($paypal_express_checkout_shortcut_cart) &&
$paypal_express_checkout_shortcut_cart}checked{/if} name="paypal_express_checkout_shortcut_cart" value="1"
id="paypal_express_checkout_shortcut_cart">
<label for="paypal_express_checkout_shortcut_cart" class="control-label">
<span
class="label-tooltip"
data-toggle="tooltip"
data-html="true"
title=""
data-original-title="<p style='text-align:left'>{l s='Activating Express Checkout Shortcut on Cart Page is recommended in specific cases only:' mod='paypal'}</p>
<p style='text-align:left'>- {l s='Multi Products web sites' mod='paypal'}</p>"
>
{l s='Cart Page' mod='paypal'}
</span>
</label>
</div>
<img src="{$moduleDir|addslashes}paypal/views/img/cart_page_button.png" class="img-responsive" alt="cart_page">
</div>
<div class="pp__py-2 pp__px-1">
<div class="pp__mb-2">
<input type="checkbox" {if isset($paypal_express_checkout_shortcut) &&
$paypal_express_checkout_shortcut}checked{/if} name="paypal_express_checkout_shortcut"
id="paypal_express_checkout_shortcut" value="1">
<label for="paypal_express_checkout_shortcut" class="control-label">
<span
class="label-tooltip"
data-toggle="tooltip"
data-html="true"
title=""
data-original-title="<p style='text-align:left'>{l s='Activating Express Checkout Shortcut on Product Pages is recommended in specific cases only:' mod='paypal'}</p>
<p style='text-align:left'>- {l s='Mono Product' mod='paypal'}</p>
<p style='text-align:left'>- {l s='Digital Goods' mod='paypal'}</p>
<p style='text-align:left'>{l s='Example:' mod='paypal'}</p>
<p style='text-align:left'>- {l s='Parking lot rental' mod='paypal'}</p>
<p style='text-align:left'>- {l s='Escape game reservation' mod='paypal'}</p>
<p style='text-align:left'>- {l s='Booking services' mod='paypal'}</p>
<p style='text-align:left'>- {l s='Single product sale' mod='paypal'}</p>"
>
{l s='Product Pages' mod='paypal'}
</span>
</label>
</div>
<img src="{$moduleDir|addslashes}paypal/views/img/product_page_button.png" alt="product_page_button">
</div>
<div class="pp__py-2 pp__px-1">
<div class="pp__mb-2">
<input type="checkbox" {if isset($paypal_express_checkout_shortcut_signup) &&
$paypal_express_checkout_shortcut_signup}checked{/if} name="paypal_express_checkout_shortcut_signup"
id="paypal_express_checkout_shortcut_signup" value="1">
<label for="paypal_express_checkout_shortcut_signup" class="control-label">
<span
class="label-tooltip"
data-toggle="tooltip"
data-html="true"
title=""
data-original-title="<p style='text-align:left'>{l s='Express Checkout Shortcut on «Sign up» step in checkout is recommended for allowing your customer to skip the «Sign up» form on your website. All information, including delivery address, will be provided by PayPal' mod='paypal'}</p>"
>
{l s='Sign up step in checkout' mod='paypal'}
</span>
</label>
</div>
<img src="{$moduleDir|addslashes}paypal/views/img/signin-checkout-button.png" alt="product_page_button">
</div>
</div>
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
{l s='PayPal shortcuts allow a faster checkout for your buyers. PayPal automatically provides you with the client\'s shipping and billing information.' mod='paypal'}
</div>

View File

@@ -0,0 +1,34 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<div class="panel">
<div>
<p>
{{l s='If you encounter rounding issues with your orders, please change PrestaShop round mode in: [a @href1@]Preferences > General[/a] then change for:' mod='paypal'}|paypalreplace:['@href1@' => {{$link->getAdminLink('AdminPreferences', true)}}, '@target@' => {'target="blank"'}]}
</p>
{include file="../_partials/roundingSettings.tpl" variant="help"}
</div>
</div>

View File

@@ -0,0 +1,42 @@
<div>
{if $mode == 'SANDBOX'}
<p>
<label for="paypal_ec_clientid">{l s='Client ID' mod='paypal'}</label>
<input
type="text"
id="paypal_ec_clientid"
name="paypal_ec_clientid_sandbox"
value="{if isset($paypal_ec_clientid)}{$paypal_ec_clientid|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
<p>
<label for="paypal_ec_secret">{l s='Secret' mod='paypal'}</label>
<input
type="password"
id="paypal_ec_secret"
name="paypal_ec_secret_sandbox"
value="{if isset($paypal_ec_secret)}{$paypal_ec_secret|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
{else}
<p>
<label for="paypal_ec_clientid">{l s='Client ID' mod='paypal'}</label>
<input
type="text"
id="paypal_ec_clientid"
name="paypal_ec_clientid_live"
value="{if isset($paypal_ec_clientid)}{$paypal_ec_clientid|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
<p>
<label for="paypal_ec_secret">{l s='Secret' mod='paypal'}</label>
<input
type="password"
id="paypal_ec_secret"
name="paypal_ec_secret_live"
value="{if isset($paypal_ec_secret)}{$paypal_ec_secret|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
{/if}
</div>

View File

@@ -0,0 +1,37 @@
{*
* 2007-2020 PayPal
*
* 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 202-ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="alert alert-info pp__my-5" data-color="gold">
{l s='People around the world know us for the color gold and research confirms it. Extensive testing determined just the right shade and shape that help increase conversion. Use it on your website to leverage PayPals recognition and preference.' mod='paypal'}
</div>
<div class="alert alert-info pp__my-5" data-color="blue">
{l s='If gold does not work for your site, try the PayPal blue button. Research shows that people know it is our brand color, which provides a halo of trust and security to your experience.' mod='paypal'}
</div>
<div class="alert alert-info pp__my-5" data-color="other">
{l s='If gold or blue does not work for your site design or aesthetic, try the silver, white, or black buttons. Because these colors are less capable of drawing peoples attention, we recommend these button colors as a second alternative.' mod='paypal'}
</div>

View File

@@ -0,0 +1,66 @@
{*
* 2007-2020 PayPal
*
* 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 202-ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div customize-style-shortcut-container>
<div setting-section>
<div current-view-section>
<div button-container>
{if isset($shortcut)}
{$shortcut nofilter}
{/if}
<div class="overlay"></div>
</div>
<div>
<span class="btn btn-default pp__ml-5" toggle-style-configuration>
{l s='Customize' mod='paypal'}
<i class="icon-edit"></i>
</span>
</div>
</div>
{if isset($errors) && false === empty($errors)}
{foreach from=$errors item=error}
<div class="alert alert-danger">
{$error nofilter}
</div>
{/foreach}
{/if}
<div configuration-section class="hidden">
{if isset($configurations) && false === empty($configurations)}
{foreach from=$configurations item=configuration}
{$configuration->render() nofilter}
{/foreach}
{/if}
</div>
</div>
<div preview-section class="invisible" style="position: relative">
<div button-container></div>
<div class="overlay"></div>
</div>
</div>

View File

@@ -0,0 +1,55 @@
{*
* 2007-2020 PayPal
*
* 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 202-ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="pp-select-preview-container pp__mb-5">
<div class="pp-select-container">
<select name="{if isset($confName)}{$confName}{/if}">
{if isset($hooks) && false === empty($hooks)}
{foreach from=$hooks key=hookName item=hookData}
<option
value="{$hookName}"
{if isset($selectedHook) && $selectedHook === $hookName}selected{/if}
{if isset($hookData['preview'])}data-preview-image="{$hookData['preview']|addslashes}"{/if}>
{if isset($hookData['desc'])}{$hookData['desc']|escape:'htmlall':'utf-8'}{/if}
</option>
{/foreach}
{/if}
</select>
<div class="pp__mt-5">
<div class="alert alert-info">
{{l s='If some elements added via other modules are displayed on the same hook, you can manage the position of the PayPal Official module via [a @href1@]« Design - Positions »[/a].' mod='paypal'}|paypalreplace:['@href1@' => {$link->getAdminLink('AdminModulesPositions', true)}, '@target@' => {'target="blank"'}]}
</div>
</div>
</div>
<div class="pp-preview-container">
<div class="pp-preview">
</div>
</div>
</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,49 @@
{*
* 2007-2020 PayPal
*
* 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 202-ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div field-row class="pp__my-5">
<div label>
{if isset($label)}
<div class="pp__my-2 pp__label">
{$label|escape:'htmlall':'utf-8'}
</div>
{/if}
</div>
<div field>
<div chain-input-container>
{if isset($inputs) && false === empty($inputs)}
{foreach from=$inputs item=input}
<div input>
{$input->render() nofilter}
</div>
{/foreach}
{/if}
</div>
<div msg-container></div>
</div>
</div>

View File

@@ -0,0 +1,55 @@
{*
* 2007-2020 PayPal
*
* 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 202-ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div field-row class="pp__my-5 pp__label {if isset($css) && $css}{$css}{/if}">
{if isset($label) && $label}
<div label>
<div class="pp__my-2">{$label|escape:'hmlall':'utf-8'}</div>
</div>
{/if}
<div field>
<select
name="{if isset($name)}{$name}{/if}"
{if isset($configType)}data-type="{$configType}"{/if}>
{if isset($options) && false === empty($options)}
{foreach from=$options item=option}
{$option->render() nofilter}
{/foreach}
{/if}
</select>
{if isset($afterSelectContent)}
<div after-select-content>
{$afterSelectContent nofilter}
</div>
{/if}
</div>
</div>

View File

@@ -0,0 +1,32 @@
{*
* 2007-2020 PayPal
*
* 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 202-ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<option
value="{if isset($value)}{$value}{/if}"
{if isset($isSelected) && $isSelected}selected{/if}>
{if isset($description)}{$description}{/if}
</option>

View File

@@ -0,0 +1,47 @@
{*
* 2007-2020 PayPal
*
* 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 202-ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div>
<input
type="text"
{if isset($name)}name="{$name}"{/if}
{if isset($value)}value="{$value}"{/if}
{if isset($configType)}data-type="{$configType}"{/if}
{if isset($attributes) && is_array($attributes)}
{foreach from=$attributes key=attrName item=attrValue}
{$attrName nofilter}='{$attrValue}'
{/foreach}
{/if}
>
</div>
<div class="pp__flex pp__justify-content-center pp__mt-2">
{if isset($label)}
<em>
{$label|escape:'htmlall':'utf-8'}
</em>
{/if}
</div>

View File

@@ -0,0 +1,52 @@
{*
* 2007-2020 PayPal
*
* 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 202-ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div widget-code-container>
<div class="input-group pp__mb-5">
<input
type="text"
readonly
{if isset($widgetCode)}value="{$widgetCode}"{/if}
id="{if isset($confName)}{$confName}{/if}"
name="{if isset($confName)}{$confName}{/if}"
/>
<span
class="input-group-addon"
style="cursor: pointer"
onclick="document.getElementById('{if isset($confName)}{$confName}{/if}').select(); document.execCommand('copy')"
>
<i class="icon-copy"></i>
</span>
</div>
<div class="pp__mt-5">
<div class="alert alert-info">
{{l s='In order to display the PayPal button via [a @href1@]widget[/a] it will be necessary to add it to the template at the desired location.'}|paypalreplace:['@href1@' => 'https://devdocs.prestashop.com/1.7/modules/concepts/widgets/', '@target@' => {'target="blank"'}]}
</div>
</div>
</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,30 @@
{*
* 2007-2020 PayPal
*
* 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 202-ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if isset($sectionTitle)}
<div class="pp__my-5" {if isset($attributes) && false === empty($attributes)}{foreach from=$attributes item=attribute} {$attribute} {/foreach}{/if}>
<h3>{$sectionTitle|escape:'htmlall':'utf-8'}</h3>
</div>
{/if}

View File

@@ -0,0 +1,63 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<div class="panel active-panel pp__flex pp__align-items-center">
<div class="pp__pr-4">
<img style="width: 135px" src="{$moduleDir|addslashes}paypal/views/img/paypal.png">
</div>
<div class="pp__pl-5">
<p>
{l s='Activate the PayPal module to start selling to +300M PayPal customers around the globe' mod='paypal'}.
</p>
{if isset($headerToolBar) && $headerToolBar}
{if isset($methodType) && $methodType == 'EC'}
<p>{l s='Activate in three easy steps' mod='paypal'}: </p>
{else}
<p>{l s='Activate in two easy steps' mod='paypal'}: </p>
{/if}
<p>
<ul>
<li>
<a href="#pp_config_account" data-pp-link-settings> {l s='Connect below your existing PayPal account or create a new one' mod='paypal'}.</a>
</li>
{if isset($methodType) && $methodType == 'EC'}
<li>
<a href="#pp_config_payment" data-pp-link-settings> {l s='Adjust your Payment setting to either capture payments instantly (Sale), or after you confirm the order (Authorize)' mod='paypal'}.</a>
</li>
{/if}
<li>
<a href="#pp_config_environment" data-pp-link-settings> {l s='Make sure the module is set to Production mode' mod='paypal'}.</a>
</li>
</ul>
</p>
<p>{l s='Voilà! Your store is ready to accept payments!' mod='paypal'}</p>
{/if}
</div>
</div>

View File

@@ -0,0 +1,27 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<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,73 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<div>
<h4>{l s='API Credentials' mod='paypal'}</h4>
<div class="row">
<div class="col-md-12">
<p>{l s='In order to accept PayPal Plus payments, please fill in 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 » below « 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 met" name="method" data-method-paypal/>
{if $mode == 'SANDBOX'}
<h4>{l s='Sandbox' mod='paypal'}</h4>
<p>
<label for="sandbox_mb_client_id">{l s='Client ID' mod='paypal'}</label>
<input type="text" id="sandbox_mb_client_id" name="paypal_mb_sandbox_clientid" value="{if isset($paypal_mb_sandbox_clientid)}{$paypal_mb_sandbox_clientid|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
<p>
<label for="sandbox_mb_secret">{l s='Secret' mod='paypal'}</label>
<input type="password" id="sandbox_mb_secret" name="paypal_mb_sandbox_secret" value="{if isset($paypal_mb_sandbox_secret)}{$paypal_mb_sandbox_secret|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
{else}
<h4>{l s='Live' mod='paypal'}</h4>
<p>
<label for="live_mb_client_id">{l s='Client ID' mod='paypal'}</label>
<input type="text" id="live_mb_client_id" name="paypal_mb_live_clientid" value="{if isset($paypal_mb_live_clientid)}{$paypal_mb_live_clientid|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
<p>
<label for="live_mb_secret">{l s='Secret' mod='paypal'}</label>
<input type="password" id="live_mb_secret" name="paypal_mb_live_secret" value="{if isset($paypal_mb_live_secret)}{$paypal_mb_live_secret|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
{/if}
</div>
</div>
</div>

View File

@@ -0,0 +1,47 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<div class="pp__mb-4">
<div class="alert alert-danger">
{l s='Starting July, 2019, Braintree payment solution is separated from PayPal module. There are 2 different
modules: PayPal official (v5.0.0) and Braintree official (v1.0.0). ' mod='paypal'}
<br>
{l s='You are using the v5.0.0 of PayPal module : the Braintree payment solution is not available via PayPal anymore. ' mod='paypal'}
<br>
{{l s='You can continue to use Braintree by installing the new Braintree module available via [a @href1@]addons.prestashop[/a] for free.' mod='paypal'}|paypalreplace:['@href1@' => {'https://addons.prestashop.com'}, '@target@' => {'target="blank"'}]}
<br>
{l s='You will be able to migrate your account settings and orders created via Braintree once you install the new Braintree module.' mod='paypal'}
<br>
{l s='Please note that we highly recommend to uninstall the PayPal module once you finish your Braintree settings migration.' mod='paypal'}
</div>
<div class="pp__flex pp__justify-content-center">
<a class="btn btn-default"
href="{$link->getAdminLink('AdminPayPalSetup', true, null, ['useWithoutBraintree' => 1])}">
{{l s='I understand.[br]You would like to use PayPal without Braintree' mod='paypal'}|paypalreplace}
</a>
</div>
</div>

View File

@@ -0,0 +1,35 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<p>
<div>
{l s='You are using the German merchant account. Starting from the v5.0.0 of the PayPal Official module it is required to use PayPal Plus instead of PayPal Express Checkout.' mod='paypal'}
</div>
<div>
{{l s='Please add your REST API credentials below to setup your account and continue to offer the PayPal payment solution to your customers. [a @href1@]Learn more about PayPal Plus[/a].' mod='paypal'}|paypalreplace:['@href1@' => {'https://www.paypal.com/de/webapps/mpp/paypal-plus'}, '@target@' => {'target="blank"'}]}
</div>
</p>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
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-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<div class="alert alert-info">
{{l s='If you are using PayPal Checkout redirect you can customize your shop logo. The logo can be changed via your business profile [a @href1@]settings[/a].' mod='paypal'}|paypalreplace:['@href1@' => {$settingLink}, '@target@' => {'target="_blank"'}]}
</div>

View File

@@ -0,0 +1,30 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<div class="alert alert-info ps-checkout-info">
<button type="button" class="close" data-dismiss="alert" data-action="close">×</button>
{{l s='This module allows your customers to pay with their PayPal account. If you wish to accept credit cards and other payment methods in addition to PayPal, we recommend the [a @href1@]PrestaShop Checkout[/a] module.' mod='paypal'}|paypalreplace:['@href1@' => {'#'}, '@target@' => {'data-action="install"'}]}
</div>

View File

@@ -0,0 +1,37 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<div class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert">×</button>
<div>
{l s='As we are constantly working on the security of your information, a new version of your merchant account authentication is available starting from the v5.2.0 of PayPal Official module.' mod='paypal'}
</div>
<div>
{{l s='Please pay attention that it is required to [b]reconnect your PayPal merchant account[/b] in order to continue to use PayPal payment solution.' mod='paypal'}|paypalreplace}
</div>
</div>

View File

@@ -0,0 +1,37 @@
{*
* 2007-2020 PayPal
*
* 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-2020 PayPal SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
{assign var='variant' value=$variant|default:'normal'}
<div class="alert alert-warning {[
'hidden' => $variant == 'hidden'
]|classnames}" data-rounding-alert>
<button type="button" class="close" data-dismiss="alert">×</button>
<div>
{{l s='Your rounding settings are not fully compatible with PayPal requirements. In order to avoid some of the transactions to fail, please change the PrestaShop rounding mode in [a @href1@] Preferences > General[/a] to:' mod='paypal'}|paypalreplace:['@href1@' => {$link->getAdminLink('AdminPreferences', true)}, '@target@' => {'target="blank"'}]}
</div>
{include file="../../_partials/roundingSettings.tpl"}
</div>

View File

@@ -0,0 +1,50 @@
{*
* 2007-2020 PayPal
*
* 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-2020 PayPal SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
{if isset($hooks) && is_array($hooks) && empty($hooks) == false}
<div>
<p>
{l s='The module is not registered with the following hooks :' mod='paypal'}
</p>
<ul>
{foreach from=$hooks item=hookName}
<li class="pp__mb-0">
{$hookName|escape:'htmlall':'utf-8'}
</li>
{/foreach}
</ul>
<div class="pp__mt-5">
<a href="{$link->getAdminLink('AdminPayPalHelp', true, null, ['registerHooks' => 1])}"
class="btn btn-default">
{l s='Install the required hooks automatically' mod='paypal'}
</a>
</div>
</div>
{/if}

View File

@@ -0,0 +1,72 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<div>
<h4>{l s='API Credentials' mod='paypal'}</h4>
<p>{l s='In order to accept PayPal Plus payments, please fill in 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 » below « 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 met" name="method" data-method-paypal/>
{if isset($sandboxMode) && $sandboxMode}
<h4>{l s='Sandbox' mod='paypal'}</h4>
<ul>
<li>{l s='You can switch to "Live" environment on top right' mod='paypal'}</li>
</ul>
<p>
<label for="sandbox_client_id">{l s='Client ID' mod='paypal'}</label>
<input type="text" id="sandbox_client_id" name="paypal_sandbox_clientid" 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="paypal_sandbox_secret" value="{if isset($paypal_sandbox_secret)}{$paypal_sandbox_secret|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
{else}
<h4>{l s='Live' mod='paypal'}</h4>
<p>
<label for="live_client_id">{l s='Client ID' mod='paypal'}</label>
<input type="text" id="live_client_id" name="paypal_live_clientid" 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="paypal_live_secret" value="{if isset($paypal_live_secret)}{$paypal_live_secret|escape:'htmlall':'UTF-8'}{/if}"/>
</p>
{/if}
</div>

View File

@@ -0,0 +1,59 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
{assign var='variant' value=$variant|default:'normal'}
<ul>
<li>
{if $variant == 'help'}<p class='h4'>{/if}
{l s='Round mode: "Round up away from zero, when it is half way there (recommended) "' mod='paypal'}
{if $variant == 'help'}</p>{/if}
</li>
<li>
{if $variant == 'help'}<p class='h4'>{/if}
{l s='Round type: "Round on each item"' mod='paypal'}
{if $variant == 'help'}</p>{/if}
</li>
<li>
{if $variant == 'help'}<p class='h4'>{/if}
{l s='Number of decimals' d='Admin.Shopparameters.Feature'}: "2"
{if $variant == 'help'}
<p>
<button class="btn btn-default" data-show-rounding-alert>
{l s='Check requirements' mod='paypal'}
</button>
</p>
{/if}
{if $variant == 'help'}</p>{/if}
</li>
</ul>
{if $variant != 'help'}
</br>
<button class="btn btn-default" data-update-rounding-settings>
{l s='Change rounding settings automatically' mod='paypal'}
</button>
{/if}

View File

@@ -0,0 +1,74 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<div>
<p>
{l s='Merchant Country:' mod='paypal'} <b>{$merchantCountry|escape:'htmlall':'utf-8'}</b>
</p>
<p>
{{l s='To modify country: [a @href1@]International > Localization[/a]' mod='paypal'}|paypalreplace:['@href1@' => {$link->getAdminLink('AdminLocalization', true)}, '@target@' => {'target="blank"'}]}
</p>
<p>
<span class="btn btn-default" id="btn-check-requirements">{l s='Check requirements' mod='paypal'}</span>
</p>
<ul class="list-unstyled">
<li>
{if isset($sslActivated) && $sslActivated}
<i class="icon-check text-success"></i>
{l s='SSL enabled.' mod='paypal'}
{else}
<i class="icon-remove text-danger"></i>
{l s='SSL should be enabled on your website.' mod='paypal'}
{/if}
</li>
<li>
{if isset($tlsVersion) && $tlsVersion['status']}
<i class="icon-check text-success"></i>
{l s='The PHP cURL extension must be enabled on your server. Please contact your hosting provider for more information.' mod='paypal'}
{elseif isset($tlsVersion) && $tlsVersion['status'] == false}
<i class="icon-remove text-danger"></i>
{l s='The PHP cURL extension must be enabled on your server. Please contact your hosting provider for more information.' mod='paypal'} {$tlsVersion['error_message']}
{/if}
</li>
<li>
{if isset($accountConfigured) && $accountConfigured}
<i class="icon-check text-success"></i>
{else}
<i class="icon-remove text-danger"></i>
{/if}
{l s='You must connect your PayPal account' mod='paypal'}
</li>
</ul>
</div>

View File

@@ -0,0 +1,52 @@
{*
* 2007-2020 PayPal
*
* 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 2007-2020 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*}
<div class="col-lg-9">
<p class="h3">
{l s='Environment:' mod='paypal'}
{if isset($sandbox) && $sandbox}
<b>{l s='Sandbox' mod='paypal'}</b>
{else}
<b>{l s='Production' mod='paypal'}</b>
{/if}
</p>
<p>{l s='Production mode is the Live environment where you\'ll be able to collect your real payments' mod='paypal'}</p>
<p>
<button class="btn btn-default" id="switchEnvironmentMode">
{l s='Switch to' mod='paypal'}
{if isset($sandbox) && $sandbox}
{l s='Production mode' mod='paypal'}
{else}
{l s='Sandbox mode' mod='paypal'}
{/if}
</button>
</p>
</div>