* @copyright 2007-2019 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ if (!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->installObjectModel('PaypalCustomer'); $installer->installAdminControllers(); $installer->installExtensions(); $module->checkPaypalStats(); return true; }