first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 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>

View File

@@ -0,0 +1,48 @@
{*
* 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)
*
*}
{if $showPsCheckoutInfo}
{include './_partials/messages/prestashopCheckoutInfo.tpl'}
{/if}
{if $showRestApiIntegrationMessage}
{include './_partials/messages/restApiIntegrationMessage.tpl'}
{/if}
{if isset($need_rounding) && $need_rounding}
{include './_partials/messages/roundingSettingsMessage.tpl'}
{/if}
{include './_partials/headerLogo.tpl'}
{if isset($formBehavior)}
{$formBehavior nofilter} {* the variable contains html code *}
{/if}
{if isset($formAdvanced)}
{$formAdvanced nofilter} {* the variable contains html code *}
{/if}

View File

@@ -0,0 +1,143 @@
{*
* 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)
*
*}
{if $showRestApiIntegrationMessage}
{include './_partials/messages/restApiIntegrationMessage.tpl'}
{/if}
{if isset($need_rounding) && $need_rounding}
{include './_partials/messages/roundingSettingsMessage.tpl' variant='hidden'}
{/if}
{include './_partials/headerLogo.tpl'}
<div class="panel">
<div>
{l s='If you have just created your PayPal account, check the email sent by PayPal to confirm your email address.' mod='paypal'}
</div>
<div>
{l s='You must have a PayPal Business Account. Otherwise, your personal account should be converted to Business account.' mod='paypal'}
</div>
</div>
{if isset($need_rounding) && $need_rounding}
{include file="./_partials/block_info.tpl" variant="help"}
{/if}
{include './_partials/messages/logoMessage.tpl'}
<div class="panel help">
<ul class="tick">
<li>
<p class="h4">
{l s='Discover module documentation before configuration' mod='paypal'}
</p>
<p>
<a target="_blank"
href="https://help.202-ecommerce.com/wp-content/uploads/2019/12/User-guide-PayPal-PrestaShop-module-51.pdf"
class="btn btn-default">
{l s='Access user documentation for module configuration.' mod='paypal'}
</a>
</p>
</li>
<li>
<p class="h4">
{l s='Check requirements before installation' mod='paypal'}
</p>
<p>
{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'}
</p>
<p>
<button name="submit-ckeck_requirements" class="btn btn-default" id="ckeck_requirements">
{l s='Check requirements' mod='paypal'}
</button>
<p class="action_response"></p>
</p>
</li>
<li>
<p class="h4">
{l s='Check your transactions history log and potential errors' mod='paypal'}
</p>
<a href="{$link->getAdminLink('AdminPayPalLogs', true)|addslashes}" class="btn btn-default">
{l s='Transaction log' mod='paypal'}
</a>
</li>
<li>
<p class="h4">
{l s='Do you still have any questions?' mod='paypal'}
</p>
<p>
{l s='Contact us! We will be happy to help!' mod='paypal'}
</p>
<p>
<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>
</p>
<p>
<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>
</p>
</li>
{if $showPsCheckout}
<li>
<p class="h4">
{l s='Do you want to accept more types of payments?' mod='paypal'}
</p>
<p>
<div>
{l s='This module allows your customers to pay with their PayPal account.' mod='paypal'}
</div>
<div>
{l s='If you wish to accept credit cards and other payment methods in addition to PayPal, we recommend the PrestaShop Checkout module.' mod='paypal'}
</div>
</p>
<p>
<span class="btn btn-default install-ps-checkout" data-action="install">
{$psCheckoutBtnText|escape:'htmlall':'utf-8'}
</span>
</p>
<p>
<image src="{$moduleDir|addslashes}paypal/views/img/Logos.png"></image>
</p>
</li>
{/if}
</ul>
</div>

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,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)
*
*}
{if $showPsCheckoutInfo}
{include './_partials/messages/prestashopCheckoutInfo.tpl'}
{/if}
{if $showRestApiIntegrationMessage}
{include './_partials/messages/restApiIntegrationMessage.tpl'}
{/if}
{if isset($need_rounding) && $need_rounding}
{include './_partials/messages/roundingSettingsMessage.tpl'}
{/if}
{include './_partials/headerLogo.tpl'}
<div>
<div class="row pp__flex">
<div class="col-lg-8 stretchHeightForm pp__pb-4">
{if isset($formAccountSettings)}
{$formAccountSettings nofilter} {* the variable contains html code *}
{/if}
</div>
<div class="col-lg-4 pp__flex pp__flex_direction_column pp__justify-content-between stretchHeightForm pp__pb-4">
{if isset($formEnvironmentSettings)}
{$formEnvironmentSettings nofilter} {* the variable contains html code *}
{/if}
<div class="status-block-container">
{if isset($formStatusTop)}
{$formStatusTop nofilter} {* the variable contains html code *}
{/if}
</div>
</div>
</div>
<div class="row pp__flex">
<div class="col-lg-8">
{if isset($formPaymentSettings)}
{$formPaymentSettings nofilter} {* the variable contains html code *}
{/if}
</div>
<div class="col-lg-4 stretchHeightForm pp__pb-4 status-block-container">
{if isset($formStatus)}
{$formStatus nofilter} {* the variable contains html code *}
{/if}
</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,42 @@
{*
* 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)
* International Registered Trademark & Property of PrestaShop SA
*}
<?xml version="1.0" encoding="UTF-8"?>
<svg width="20px" height="21px" viewBox="0 0 20 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Checkout-Payment" transform="translate(-841.000000, -407.000000)">
<g id="paypal-reassurance-tooltip" transform="translate(491.000000, 385.000000)">
<g id="wherever-you-are" transform="translate(261.000000, 20.500000)">
<g id="baseline-language-24px" transform="translate(87.000000, 0.000000)">
<polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon>
<path d="M11.99,2 C6.47,2 2,6.48 2,12 C2,17.52 6.47,22 11.99,22 C17.52,22 22,17.52 22,12 C22,6.48 17.52,2 11.99,2 Z M18.92,8 L15.97,8 C15.65,6.75 15.19,5.55 14.59,4.44 C16.43,5.07 17.96,6.35 18.92,8 Z M12,4.04 C12.83,5.24 13.48,6.57 13.91,8 L10.09,8 C10.52,6.57 11.17,5.24 12,4.04 Z M4.26,14 C4.1,13.36 4,12.69 4,12 C4,11.31 4.1,10.64 4.26,10 L7.64,10 C7.56,10.66 7.5,11.32 7.5,12 C7.5,12.68 7.56,13.34 7.64,14 L4.26,14 Z M5.08,16 L8.03,16 C8.35,17.25 8.81,18.45 9.41,19.56 C7.57,18.93 6.04,17.66 5.08,16 L5.08,16 Z M8.03,8 L5.08,8 C6.04,6.34 7.57,5.07 9.41,4.44 C8.81,5.55 8.35,6.75 8.03,8 L8.03,8 Z M12,19.96 C11.17,18.76 10.52,17.43 10.09,16 L13.91,16 C13.48,17.43 12.83,18.76 12,19.96 Z M14.34,14 L9.66,14 C9.57,13.34 9.5,12.68 9.5,12 C9.5,11.32 9.57,10.65 9.66,10 L14.34,10 C14.43,10.65 14.5,11.32 14.5,12 C14.5,12.68 14.43,13.34 14.34,14 Z M14.59,19.56 C15.19,18.45 15.65,17.25 15.97,16 L18.92,16 C17.96,17.65 16.43,18.93 14.59,19.56 L14.59,19.56 Z M16.36,14 C16.44,13.34 16.5,12.68 16.5,12 C16.5,11.32 16.44,10.66 16.36,10 L19.74,10 C19.9,10.64 20,11.31 20,12 C20,12.69 19.9,13.36 19.74,14 L16.36,14 Z" id="Shape" fill="#00B3E3" fill-rule="nonzero"></path>
</g>
</g>
</g>
</g>
</g>
</svg>

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)
*
*}
<div class="alert alert-info">
<div>
{{l s='You have to [b]finish your payment[/b] done with your PayPal account ' mod='paypal'}|paypalreplace nofilter} {if isset($paypalEmail)}{$paypalEmail|escape:'htmlall':'utf-8'}{/if}
</div>
<div>
{l s='by accepting the terms of service and clicking on the order validation button below.' mod='paypal'}
</div>
</div>

View File

@@ -0,0 +1,41 @@
{*
* 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">
<div>
{{l s='You have to [b]finish your payment[/b] done with your PayPal account ' mod='paypal'}|paypalreplace nofilter} {if isset($paypalEmail)}{$paypalEmail|escape:'htmlall':'utf-8'}{/if}
</div>
<div>
{l s='by accepting the terms of service and clicking on the order validation button below.' mod='paypal'}
</div>
<br>
<div>
{l s='Please note that the additional delivery fees (%1s) have been applied. For more details, please check your order summary.' sprintf=[$carrierFees] mod='paypal'}
</div>
</div>

View File

@@ -0,0 +1,42 @@
{*
* 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)
* International Registered Trademark & Property of PrestaShop SA
*}
<?xml version="1.0" encoding="UTF-8"?>
<svg width="20px" height="21px" viewBox="0 0 20 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Checkout-Payment" transform="translate(-841.000000, -496.000000)">
<g id="paypal-reassurance-tooltip" transform="translate(491.000000, 385.000000)">
<g id="mostly-free" transform="translate(261.000000, 109.500000)">
<g id="baseline-monetization_on-24px" transform="translate(87.000000, 0.000000)">
<path d="M12,2 C6.48,2 2,6.48 2,12 C2,17.52 6.48,22 12,22 C17.52,22 22,17.52 22,12 C22,6.48 17.52,2 12,2 Z M13.41,18.09 L13.41,20 L10.74,20 L10.74,18.07 C9.03,17.71 7.58,16.61 7.47,14.67 L9.43,14.67 C9.53,15.72 10.25,16.54 12.08,16.54 C14.04,16.54 14.48,15.56 14.48,14.95 C14.48,14.12 14.04,13.34 11.81,12.81 C9.33,12.21 7.63,11.19 7.63,9.14 C7.63,7.42 9.02,6.3 10.74,5.93 L10.74,4 L13.41,4 L13.41,5.95 C15.27,6.4 16.2,7.81 16.26,9.34 L14.3,9.34 C14.25,8.23 13.66,7.47 12.08,7.47 C10.58,7.47 9.68,8.15 9.68,9.11 C9.68,9.95 10.33,10.5 12.35,11.02 C14.37,11.54 16.53,12.41 16.53,14.93 C16.52,16.76 15.15,17.76 13.41,18.09 Z" id="Shape" fill="#00B3E3" fill-rule="nonzero"></path>
<polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon>
</g>
</g>
</g>
</g>
</g>
</svg>

View File

@@ -0,0 +1,42 @@
{*
* 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)
* International Registered Trademark & Property of PrestaShop SA
*}
<?xml version="1.0" encoding="UTF-8"?>
<svg width="20px" height="21px" viewBox="0 0 20 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Checkout-Payment" transform="translate(-619.000000, -496.000000)">
<g id="paypal-reassurance-tooltip" transform="translate(491.000000, 385.000000)">
<g id="simple-and-convenient" transform="translate(39.000000, 109.500000)">
<g id="baseline-offline_bolt-24px" transform="translate(87.000000, 0.000000)">
<polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon>
<path d="M12,2.02 C6.49,2.02 2.02,6.49 2.02,12 C2.02,17.51 6.49,21.98 12,21.98 C17.51,21.98 21.98,17.51 21.98,12 C21.98,6.49 17.51,2.02 12,2.02 Z M11.48,20 L11.48,13.74 L8,13.74 L13,4 L13,10.26 L16.35,10.26 L11.48,20 Z" id="Shape" fill="#00B3E3" fill-rule="nonzero"></path>
</g>
</g>
</g>
</g>
</g>
</svg>

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)
* International Registered Trademark & Property of PrestaShop SA
*}
<?xml version="1.0" encoding="iso-8859-1"?>
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 477.867 477.867" style="enable-background:new 0 0 477.867 477.867;" xml:space="preserve" width="20px" height="21px">
<g>
<g>
<path fill="#00B3E3" d="M409.6,170.667h-17.067V153.6C392.439,68.808,323.725,0.094,238.933,0c-84.792,0.094-153.506,68.808-153.6,153.6v17.067
H68.267c-9.426,0-17.067,7.641-17.067,17.067V460.8c0,9.426,7.641,17.067,17.067,17.067H409.6c9.426,0,17.067-7.641,17.067-17.067
V187.733C426.667,178.308,419.026,170.667,409.6,170.667z M119.467,153.6c0-65.98,53.487-119.467,119.467-119.467
S358.4,87.62,358.4,153.6v17.067H119.467V153.6z M392.533,443.733h-307.2V204.8h307.2V443.733z"/>
</g>
</g>
<g>
<g>
<path fill="#00B3E3" d="M287.209,290.111c-7.211-20.472-26.571-34.152-48.276-34.111c-28.211-0.053-51.124,22.773-51.177,50.984
c-0.041,21.705,13.639,41.065,34.111,48.276v37.274c0,9.426,7.641,17.067,17.067,17.067S256,401.959,256,392.533V355.26
C282.609,345.888,296.582,316.719,287.209,290.111z M238.933,324.267c-9.426,0-17.067-7.641-17.067-17.067
s7.641-17.067,17.067-17.067S256,297.774,256,307.2S248.359,324.267,238.933,324.267z"/>
</g>
</g>
</svg>

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

View File

@@ -0,0 +1,91 @@
{*
* 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 part menu -->
<head>
{block name='head'}
{include file='_partials/head.tpl'}
{/block}
</head>
<body>
{hook h='displayAfterBodyOpeningTag'}
<main>
<!-- Menu part-->
<header id="header">
{block name='header'}
{include file='_partials/header.tpl'}
{/block}
</header>
<!-- Header part ends -->
<section id="wrapper">
<div class="container">
<section id="main">
<section id="content" class="page-content card card-block">
{include file='_partials/breadcrumb.tpl'}
<h2>{l s='Error in Paypal' mod='paypal'}</h2>
<div class="table-responsive-row clearfix">
<p class="paypal_error_msg">
{if $error_msg == '' && $msg_long == ''}
{if $error_code}<span class="code">[{$error_code|escape:'htmlall':'UTF-8'}]</span>{/if}
{l s='Unexpected error occurred. Please contact shop administrator.' mod='paypal'}
{else}
{if $error_code}<span class="code">[{$error_code|escape:'htmlall':'UTF-8'}]</span>{/if}
{if $error_msg}<span class="short">{$error_msg|escape:'htmlall':'UTF-8'}</span>{/if}
<br>
{if $msg_long && $msg_long != $error_msg}
<span class="long">{l s='Additional error message : ' mod='paypal'}{$msg_long|escape:'htmlall':'UTF-8'}</span>
{/if}
{/if}
</p>
{if $show_retry}
<a class="btn btn-secondary" href="{$link->getPageLink('order', true)}">{l s='Try to pay again' mod='paypal'}</a>
{/if}
</div>
</section>
</section>
</div>
</section>
<!-- Footer starts -->
<footer id="footer">
{block name="footer"}
{include file="_partials/footer.tpl"}
{/block}
</footer>
<!-- Footer Ends -->
{block name='javascript_bottom'}
{include file="_partials/javascript.tpl" javascript=$javascript.bottom}
{/block}
{hook h='displayBeforeBodyClosingTag'}
</main>
</body>

View File

@@ -0,0 +1,28 @@
{*
* 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>{l s='You will be redirected to the PayPal website to process your card payment.' mod='paypal'}</p>
<p>{l s='PayPal secures your payment and protect your financial information with strong encryption tools.' mod='paypal'}</p>

View File

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

View File

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

View File

@@ -0,0 +1,45 @@
{*
* 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)
*
*}
<style>
#popup-ppp-waiting p {
font-size: 16px;
margin: 10px;
line-height: 1.5em;
color: #373a3c;
}
</style>
<div class="row">
<div class="col-xs-12 col-md-10">
<div class="paypal-plus-row-payment">
<div class="payment_module paypal-plus">
{include file="module:paypal/views/templates/front/payment_infos.tpl"}
<div id="ppplus" style="width: 100%;"></div>
</div>
</div>
</div>
</div>

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)
*
*}
{if isset($resources) && is_array($resources) && empty($resources) == false}
{foreach from=$resources item=resource}
<link href="{$resource|addslashes}" rel="prefetch" as="script">
{/foreach}
{/if}

View File

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

View File

@@ -0,0 +1,36 @@
{*
* 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 data-container-express-checkout data-paypal-source-page='cart' style="float:right; margin: 10px 40px 0 0">
<form data-paypal-payment-form-cart class="paypal_payment_form" action="{$action_url|escape:'htmlall':'UTF-8'}" title="{l s='Pay with PayPal' mod='paypal'}" method="post" data-ajax="false">
<input type="hidden" name="method" value="{$PayPal_payment_type|escape:'htmlall':'UTF-8'}"/>
<input type="hidden" name="current_shop_url" id="paypal_url_page" value="" />
<input type="hidden" id="in_context_checkout_enabled" value="0">
<input type="hidden" id="source_page" value="cart">
<img src="{$PayPal_img_esc|escape:'htmlall':'UTF-8'}" data-paypal-shortcut-btn alt="{l s='PayPal' mod='paypal'}" style="cursor:pointer;"/>
</form>
</div>
<div class="clearfix"></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="panel">
<h3>{l s='Payment logs' mod='paypal'}</h3>
{include file='./tableLogs.tpl'}
</div>

View File

@@ -0,0 +1,29 @@
{*
* 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="tab-pane" id="paypal">
{include file='./tableLogs.tpl'}
</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)
*
*}
<li class="nav-item">
<a href="#paypal" class="nav-link" data-toggle="tab" role="tab">
{l s='PayPal' mod='paypal'}
{if version_compare($psVersion, '1.7.7', '>=')}
({if isset($logs)}{$logs|@count}{else}0{/if})
{else}
<span class="badge">{if isset($logs)}{$logs|@count}{else}0{/if}</span>
{/if}
</a>
</li>

View File

@@ -0,0 +1,34 @@
{*
* 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 2007-2019 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>
<b>{l s='PayPal Transaction ID' mod='paypal'}:</b> {if isset($log)}<a href="{$log->getLinkToTransaction()|addslashes}" target="_blank">{$log->id_transaction|escape:'html':'utf-8'}</a>{/if}
</div>
<div>
<b>{l s='Last Logs Details' mod='paypal'}:</b> {if isset($log)}{$log->log|escape:'html':'utf-8'}{/if}
</div>

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,31 @@
{*
* 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)
*
*}
<li>
<a href="{$link->getModuleLink('paypal', 'account')|escape:'html':'UTF-8'}" title="{l s='My payment methods' mod='paypal'}">
{l s='My payment methods' mod='paypal'}
</a>
</li>

View File

@@ -0,0 +1,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)
*
*}
<a class="col-lg-4 col-md-6 col-sm-6 col-xs-12 3" id="paypal-link" href="{$link->getModuleLink('paypal', 'account')|escape:'html':'UTF-8'}" title="{l s='My payment methods' mod='paypal'}">
<span class="link-item">
<i class="material-icons">credit_card</i>
{l s='My payment methods' mod='paypal'}
</span>
</a>

View File

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

View File

@@ -0,0 +1,65 @@
{*
* 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)
*
*}
<script>
{literal}
// add checkbox
$(document).ready(() => {
var chb_paypal_refund = '{/literal}{$chb_paypal_refund}{literal}';
// Make partial order refund in Order page in BO
$(document).on('click', '#desc-order-partial_refund', function(){
// Create checkbox and insert for Paypal refund
if ($('#doPartialRefundPaypal').length == 0) {
let newCheckBox = `<p class="checkbox"><label for="doPartialRefundPaypal">
<input type="checkbox" id="doPartialRefundPaypal" name="doPartialRefundPaypal" value="1">
${chb_paypal_refund}</label></p>`;
$('button[name=partialRefund]').parent('.partial_refund_fields').prepend(newCheckBox);
}
});
$(document).on('click', '.partial-refund-display', function(){
// Create checkbox and insert for Paypal refund
if ($('#doPartialRefundPaypal').length == 0) {
let newCheckBox = `
<div class="cancel-product-element form-group" style="display: block;">
<div class="checkbox">
<div class="md-checkbox md-checkbox-inline">
<label>
<input type="checkbox" id="doPartialRefundPaypal" name="doPartialRefundPaypal" material_design="material_design" value="1">
<i class="md-checkbox-control"></i>
${chb_paypal_refund}
</label>
</div>
</div>
</div>`;
$('.refund-checkboxes-container').prepend(newCheckBox);
}
});
});
{/literal}
</script>

View File

@@ -0,0 +1,28 @@
{*
* 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)
*
*}
<script>
$('.kpi-container').after($('.paypal-warning').parents('.module_warning'));
</script>

View File

@@ -0,0 +1,58 @@
{*
* 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)
*
*}
<table class="table">
<thead>
<tr>
<th>{l s='Timestamp' mod='paypal'}</th>
<th>{l s='Timestamp PayPal' mod='paypal'}</th>
<th>{l s='Transaction ID' mod='paypal'}</th>
<th>{l s='Payment tool' mod='paypal'}</th>
<th>{l s='Description' mod='paypal'}</th>
</tr>
</thead>
<tbody>
{foreach from=$logs item=log}
<tr>
<td>
{$log->date_add|escape:'html':'utf-8'}
</td>
<td>
{$log->getDateTransaction()|escape:'html':'utf-8'}
</td>
<td>
<a href="{$log->getLinkToTransaction()|addslashes}" target="_blank">{$log->id_transaction|escape:'html':'utf-8'}</a>
</td>
<td>
{$log->tools|escape:'html':'utf-8'}
</td>
<td>
{$log->log|escape:'html':'utf-8'}
</td>
</tr>
{/foreach}
</tbody>
</table>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-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,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,51 @@
{*
* 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)
*
*}
{extends 'module:paypal/views/templates/shortcut/shortcut-layout.tpl'}
{block name='content'}
<style>
[data-container-express-checkout] {
margin: 10px 0;
display: flex;
justify-content: center;
}
.cart-grid-body [data-container-express-checkout] {
justify-content: flex-end;
}
</style>
<div data-container-express-checkout data-paypal-source-page="cart">
<form data-paypal-payment-form-cart class="paypal_payment_form" action="{$action_url|escape:'htmlall':'UTF-8'}" title="{l s='Pay with PayPal' mod='paypal'}" method="post" data-ajax="false">
<input type="hidden" name="express_checkout" value="{$PayPal_payment_type|escape:'htmlall':'UTF-8'}"/>
<input type="hidden" name="current_shop_url" data-paypal-url-page value="" />
<input type="hidden" id="source_page" name="source_page" value="cart">
</form>
<div paypal-button-container></div>
</div>
<div class="clearfix"></div>
{/block}

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)
*
*}
<!-- Start shortcut. Module Paypal -->
{block name='head'}
<script>
{foreach from=$JSvars key=varName item=varValue}
var {$varName} = {$varValue|json_encode nofilter};
{/foreach}
</script>
{/block}
{block name='content'}{/block}
{block name='js'}
{if isset($JSscripts) && is_array($JSscripts) && false === empty($JSscripts)}
{foreach from=$JSscripts key=keyScript item=JSscript}
<script>
var script = document.querySelector('script[data-key="{$keyScript}"]');
if (null == script) {
var newScript = document.createElement('script');
newScript.setAttribute('src', '{$JSscript nofilter}');
newScript.setAttribute('data-key', '{$keyScript}');
document.body.appendChild(newScript);
}
</script>
{/foreach}
{/if}
{/block}
{block name='init-button'}
<script>
function waitPaypalIsLoaded() {
if (typeof paypal === 'undefined' || typeof Shortcut === 'undefined') {
setTimeout(waitPaypalIsLoaded, 200);
return;
}
Shortcut.init();
Shortcut.initButton();
}
waitPaypalIsLoaded();
</script>
{/block}
<!-- End shortcut. Module Paypal -->

View File

@@ -0,0 +1,62 @@
{*
* 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)
*
*}
{extends file='./shortcut-layout.tpl'}
{block name='content'}
<div preview-button-container {if isset($shortcutID)} data-id="{$shortcutID}" {/if}></div>
{/block}
{block name='init-button'}
<script>
{literal}
// Wrap a logic in a function init() for to avoid the redefining the variables
function init () {
var btnStyle = {/literal}{$styleSetting|json_encode nofilter}{literal};
var selector = '[preview-button-container]{/literal}{if isset($shortcutID)}[data-id="{$shortcutID}"]{/if}{literal}';
function waitPaypalIsLoaded() {
if (typeof paypal === 'undefined') {
setTimeout(waitPaypalIsLoaded, 200);
return;
}
document.querySelector(selector).style.width = btnStyle['width'] + 'px';
paypal.Buttons({
fundingSource: paypal.FUNDING.PAYPAL,
style: btnStyle
}).render(document.querySelector(selector));
}
waitPaypalIsLoaded();
}
init();
{/literal}
</script>
{/block}

View File

@@ -0,0 +1,58 @@
{*
* 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)
*
*}
{extends 'module:paypal/views/templates/shortcut/shortcut-layout.tpl'}
{block name='content'}
<style>
.product-quantity {
flex-wrap: wrap;
}
.product-quantity [data-container-express-checkout] {
flex-basis: 100%;
}
</style>
<div data-container-express-checkout data-paypal-source-page="product" style="float:right; margin: 10px 40px 0 0;">
<form data-paypal-payment-form-cart class="paypal_payment_form" action="{$action_url|escape:'htmlall':'UTF-8'}" title="{l s='Pay with PayPal' mod='paypal'}" method="post" data-ajax="false">
<input
type="hidden"
name="id_product"
data-paypal-id-product
value="{$paypalIdProduct|escape:'htmlall':'UTF-8'}"
/>
<input type="hidden" name="quantity" data-paypal-qty value=""/>
<input type="hidden" name="combination" data-paypal-combination value="" />
<input type="hidden" data-paypal-id-product-attribute value="{$es_cs_product_attribute|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="express_checkout" value="{$PayPal_payment_type|escape:'htmlall':'UTF-8'}"/>
<input type="hidden" name="current_shop_url" data-paypal-url-page value="" />
<input type="hidden" id="source_page" name="source_page" value="product">
</form>
<div paypal-button-container></div>
</div>
<div class="clearfix"></div>
{/block}

View File

@@ -0,0 +1,43 @@
{*
* 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)
*
*}
{extends 'module:paypal/views/templates/shortcut/shortcut-cart.tpl'}
{block name='content'}
<div paypal-shortcut-signup style="display: flex;">
{$smarty.block.parent}
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
var shortcut = document.querySelector('[paypal-shortcut-signup]');
var signupForm = document.querySelector('#checkout-personal-information-step .content');
signupForm.insertBefore(shortcut, signupForm.childNodes[0]);
});
</script>
{/block}