download all files

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

View File

@@ -0,0 +1,37 @@
<?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)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_4_0_1($module)
{
if (!$module->installOrderState()) {
return false;
}
return true;
}

View File

@@ -0,0 +1,69 @@
<?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)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_4_2_0($module)
{
$sql = 'ALTER TABLE '._DB_PREFIX_.'paypal_order ADD method VARCHAR(255), ADD payment_tool VARCHAR(255)';
if (!Db::getInstance()->execute($sql)) {
return false;
}
if (!$module->installOrderState()) {
return false;
}
if (!$module->registerHook('header')
|| !$module->registerHook('displayBackOfficeHeader')
|| !$module->registerHook('displayFooterProduct')
|| !$module->registerHook('actionBeforeCartUpdateQty')
|| !$module->registerHook('displayReassurance')
|| !$module->registerHook('actionObjectCurrencyAddAfter')) {
return false;
}
if (!Configuration::updateValue('PAYPAL_BRAINTREE_ENABLED', 0)
|| !Configuration::updateValue('PAYPAL_CRON_TIME', date('Y-m-d H:m:s'))
|| !Configuration::updateValue('PAYPAL_BY_BRAINTREE', 0)) {
return false;
}
if (Configuration::get('PAYPAL_METHOD') == "EXPRESS_CHECKOUT") {
if (Configuration::get('PAYPAL_LIVE_ACCESS') || Configuration::get('PAYPAL_SANDBOX_ACCESS')) {
Configuration::updateValue('PAYPAL_METHOD', 'EC');
if (Country::getIsoById(Configuration::get('PS_COUNTRY_DEFAULT')) == "FR" || Country::getIsoById(Configuration::get('PS_COUNTRY_DEFAULT')) == "UK") {
Configuration::updateValue('PAYPAL_API_CARD', 0);
}
} else {
Configuration::updateValue('PAYPAL_METHOD', '');
}
}
return true;
}

View File

@@ -0,0 +1,56 @@
<?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)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_4_3_0($module)
{
if (!$module->registerHook('displayInvoiceLegalFreeText')) {
return false;
}
Configuration::updateValue('PAYPAL_EXPRESS_CHECKOUT_IN_CONTEXT', '');
Configuration::updateValue('PAYPAL_MERCHANT_ID_SANDBOX', '');
Configuration::updateValue('PAYPAL_MERCHANT_ID_LIVE', '');
if (Configuration::get('PAYPAL_METHOD') == 'EC') {
Configuration::updateValue('PAYPAL_METHOD', '');
Configuration::updateValue('PAYPAL_USERNAME_SANDBOX', '');
Configuration::updateValue('PAYPAL_PSWD_SANDBOX', '');
Configuration::updateValue('PAYPAL_SIGNATURE_SANDBOX', '');
Configuration::updateValue('PAYPAL_SANDBOX_ACCESS', '');
Configuration::updateValue('PAYPAL_USERNAME_LIVE', '');
Configuration::updateValue('PAYPAL_PSWD_LIVE', '');
Configuration::updateValue('PAYPAL_SIGNATURE_LIVE', '');
Configuration::updateValue('PAYPAL_LIVE_ACCESS', '');
}
return true;
}

View File

@@ -0,0 +1,87 @@
<?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)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_4_4_0($module)
{
Configuration::updateValue('PAYPAL_VAULTING', 0);
Configuration::updateValue('PAYPAL_CONFIG_BRAND', '');
Configuration::updateValue('PAYPAL_CONFIG_LOGO', '');
if (!$module->registerHook('displayMyAccountBlock')
|| !$module->registerHook('displayCustomerAccount')) {
return false;
}
$sql = array();
$sql[] = "CREATE TABLE IF NOT EXISTS `" . _DB_PREFIX_ . "paypal_customer` (
`id_paypal_customer` INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`id_customer` INT(11),
`reference` VARCHAR(55),
`method` VARCHAR(55),
`date_add` DATETIME,
`date_upd` DATETIME
) ENGINE = " . _MYSQL_ENGINE_ ;
$sql[] = "CREATE TABLE IF NOT EXISTS `" . _DB_PREFIX_ . "paypal_vaulting` (
`id_paypal_vaulting` INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`id_paypal_customer` INT(11),
`token` VARCHAR(255),
`name` VARCHAR(255),
`info` VARCHAR(255),
`payment_tool` VARCHAR(255),
`date_add` DATETIME,
`date_upd` DATETIME
) ENGINE = " . _MYSQL_ENGINE_ ;
foreach ($sql as $q) {
if (!DB::getInstance()->execute($q)) {
return false;
}
}
if (Configuration::get('PAYPAL_BRAINTREE_OS_AWAITING')
&& Validate::isLoadedObject(new OrderState(Configuration::get('PAYPAL_BRAINTREE_OS_AWAITING')))) {
$order_state = new OrderState(Configuration::get('PAYPAL_BRAINTREE_OS_AWAITING'));
$source = _PS_MODULE_DIR_.'paypal/views/img/os_braintree.png';
$destination = _PS_ROOT_DIR_.'/img/os/'.(int) $order_state->id.'.gif';
copy($source, $destination);
}
if (Configuration::get('PAYPAL_BRAINTREE_OS_AWAITING_VALIDATION')
&& Validate::isLoadedObject(new OrderState(Configuration::get('PAYPAL_BRAINTREE_OS_AWAITING_VALIDATION')))) {
$order_state = new OrderState(Configuration::get('PAYPAL_BRAINTREE_OS_AWAITING_VALIDATION'));
$source = _PS_MODULE_DIR_.'paypal/views/img/os_braintree.png';
$destination = _PS_ROOT_DIR_.'/img/os/'.(int) $order_state->id.'.gif';
copy($source, $destination);
}
return true;
}

View File

@@ -0,0 +1,40 @@
<?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)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_4_4_2($module)
{
Configuration::updateValue('PAYPAL_EXPRESS_CHECKOUT_SHORTCUT_CART', 0);
if (!$module->registerHook('displayShoppingCartFooter')) {
return false;
}
return true;
}

View File

@@ -0,0 +1,38 @@
<?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)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_4_4_3($module)
{
if (!$module->registerHook('actionOrderSlipAdd')) {
return false;
}
return true;
}

View File

@@ -0,0 +1,44 @@
<?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)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
use PaypalPPBTlib\Install\ModuleInstaller;
/**
* @param $module PayPal
* @return bool
*/
function upgrade_module_4_5_0($module)
{
$installer = new ModuleInstaller($module);
$installer->registerHooks();
$installer->installObjectModel('PaypalOrder');
$installer->installAdminControllers();
$installer->installExtensions();
return true;
}

View File

@@ -0,0 +1,54 @@
<?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)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
use PaypalAddons\classes\AbstractMethodPaypal;
use PaypalPPBTlib\Install\ModuleInstaller;
/**
* @param $module PayPal
* @return bool
*/
function upgrade_module_5_0_0($module)
{
$installer = new ModuleInstaller($module);
$installer->registerHooks();
$installer->installAdminControllers();
$module->renameTabParent();
$method = AbstractMethodPaypal::load('EC');
$method->checkCredentials();
$tabConfiguration = Tab::getInstanceFromClassName('AdminPaypalConfiguration');
if (Validate::isLoadedObject($tabConfiguration) == false) {
return false;
}
$tabConfiguration->active = false;
return $tabConfiguration->save();
}

View File

@@ -0,0 +1,77 @@
<?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)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
require_once _PS_MODULE_DIR_ . 'paypal/classes/AbstractMethodPaypal.php';
use PaypalPPBTlib\Install\ModuleInstaller;
/**
* @param $module PayPal
* @return bool
*/
function upgrade_module_5_1_0($module)
{
$configs = array(
'PAYPAL_CUSTOMIZE_ORDER_STATUS' => 0,
'PAYPAL_OS_REFUNDED' => (int)Configuration::get('PS_OS_REFUND'),
'PAYPAL_OS_CANCELED' => (int)Configuration::get('PS_OS_CANCELED'),
'PAYPAL_OS_ACCEPTED' => (int)Configuration::get('PS_OS_PAYMENT'),
'PAYPAL_OS_CAPTURE_CANCELED' => (int)Configuration::get('PS_OS_CANCELED'),
'PAYPAL_OS_ACCEPTED_TWO' => (int)Configuration::get('PS_OS_PAYMENT'),
'PAYPAL_OS_WAITING_VALIDATION' => (int)Configuration::get('PAYPAL_OS_WAITING'),
'PAYPAL_OS_PROCESSING' => (int)Configuration::get('PAYPAL_OS_WAITING'),
'PAYPAL_OS_VALIDATION_ERROR' => (int)Configuration::get('PS_OS_ERROR'),
'PAYPAL_OS_REFUNDED_PAYPAL' => (int)Configuration::get('PS_OS_REFUND')
);
$shops = Shop::getShops();
$tab = Tab::getInstanceFromClassName('AdminParentPaypalConfiguration');
$return = true;
$installer = new ModuleInstaller($module);
if (Validate::isLoadedObject($tab)) {
$tab->active = false;
$return &= $tab->save();
}
$return &= $installer->uninstallObjectModel('PaypalVaulting');
$return &= $installer->installObjectModel('PaypalVaulting');
foreach ($configs as $config => $value) {
if (Shop::isFeatureActive()) {
foreach ($shops as $shop) {
$return &= Configuration::updateValue($config, $value, false, null, (int)$shop['id_shop']);
}
} else {
$return &= Configuration::updateValue($config, $value);
}
}
return $return;
}

View File

@@ -0,0 +1,45 @@
<?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)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @param $module PayPal
* @return bool
*/
function upgrade_module_5_1_4($module)
{
// Since Ps 1.7.7 we use a hook DisplayAdminOrderTop
$return = $module->registerHook('displayAdminOrderTop');
// Since Ps 1.7.7 we must use the hooks displayAdminOrderTabLink and displayAdminOrderTabContent
$return &= $module->registerHook('displayAdminOrderTabLink');
$return &= $module->registerHook('displayAdminOrderTabContent');
return $return;
}

View File

@@ -0,0 +1,55 @@
<?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)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
use PaypalPPBTlib\Install\ModuleInstaller;
/**
* @param $module PayPal
* @return bool
*/
function upgrade_module_5_2_0($module)
{
$return = true;
$installer = new ModuleInstaller($module);
// Reset the admin controller translations
$return &= $installer->uninstallModuleAdminControllers();
$return &= $installer->installAdminControllers();
$return &= $installer->registerHooks();
Configuration::updateValue('PAYPAL_PREVIOUS_VERSION', '5.1.5');
Configuration::updateValue('PAYPAL_NEED_CHECK_CREDENTIALS', 1);
if (Configuration::get('PAYPAL_API_INTENT') === 'authorization') {
Configuration::updateValue('PAYPAL_API_INTENT', 'authorize');
}
return $return;
}

View File

@@ -0,0 +1,68 @@
<?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)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
use PaypalPPBTlib\Install\ModuleInstaller;
use PaypalAddons\classes\Shortcut\ShortcutConfiguration;
/**
* @param $module PayPal
* @return bool
*/
function upgrade_module_5_3_0($module)
{
$installer = new ModuleInstaller($module);
$shops = Shop::getShops();
Configuration::updateGlobalValue(ShortcutConfiguration::USE_OLD_HOOK, 1);
if (Shop::isFeatureActive()) {
foreach ($shops as $shop) {
Configuration::updateValue(
ShortcutConfiguration::PRODUCT_PAGE_HOOK,
ShortcutConfiguration::HOOK_REASSURANCE,
false,
null,
(int)$shop['id_shop']
);
Configuration::updateValue(
ShortcutConfiguration::CART_PAGE_HOOK,
ShortcutConfiguration::HOOK_SHOPPING_CART_FOOTER,
false,
null,
(int)$shop['id_shop']
);
}
} else {
Configuration::updateValue(ShortcutConfiguration::PRODUCT_PAGE_HOOK, ShortcutConfiguration::HOOK_REASSURANCE);
Configuration::updateValue(ShortcutConfiguration::CART_PAGE_HOOK, ShortcutConfiguration::HOOK_SHOPPING_CART_FOOTER);
}
// Registre the new hooks
return $installer->registerHooks();
}

View File

@@ -0,0 +1,39 @@
<?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)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @param $module PayPal
* @return bool
*/
function upgrade_module_5_3_1($module)
{
$module->resetHooks();
return true;
}

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;