From 01412cacd61d4b02279a4c85982d294f7ed2a223 Mon Sep 17 00:00:00 2001 From: Gytautas Date: Fri, 27 Oct 2023 11:29:11 +0300 Subject: [PATCH 1/9] added index and headers into files/folders --- .htaccess | 15 +++++++ composer.json | 5 ++- controllers/admin/index.php | 18 -------- controllers/front/hostedIframe.php | 6 +-- controllers/front/pendingNotify.php | 6 +-- cypress/fixtures/index.php | 11 +++++ cypress/index.php | 11 +++++ .../01_ps1764.Module.Configure.cy.js | 21 +++++++++ .../01_ps1770.Module.Configure.cy.js | 21 +++++++++ .../01_ps1784.Module.Configure.cy.js | 21 +++++++++ .../01_ps1786.Module.Configure.cy.js | 21 +++++++++ cypress/integration/02_ps1764.cy.js | 21 +++++++++ cypress/integration/02_ps1770.cy.js | 21 +++++++++ cypress/integration/02_ps1784.cy.js | 21 +++++++++ cypress/integration/02_ps1786.cy.js | 21 +++++++++ cypress/integration/index.php | 11 +++++ cypress/plugins/index.php | 11 +++++ cypress/support/commands.js | 21 +++++++++ cypress/support/index.js | 21 +++++++++ cypress/support/index.php | 11 +++++ package.json | 12 ++--- saferpayofficial.php | 6 +-- src/Api/Enum/index.php | 11 +++++ src/Builder/index.php | 18 -------- src/Core/Order/Verification/index.php | 11 +++++ src/Core/Order/index.php | 11 +++++ src/Core/index.php | 11 +++++ .../Request/ObtainPaymentMethods/index.php | 11 +++++ src/DTO/Response/Transaction.php | 18 -------- src/Factory/ModuleFactory.php | 22 +++++++++ src/Factory/index.php | 11 +++++ src/Presentation/Loader/index.php | 11 +++++ src/Presentation/index.php | 11 +++++ .../PaymentRestrictionProviderInterface.php | 6 +-- src/Service/LegacyTranslator.php | 6 +-- .../ApplePayPaymentRestrictionValidation.php | 6 +-- .../KlarnaPaymentRestrictionValidation.php | 6 +-- .../PaymentRestrictionValidationInterface.php | 6 +-- ...topaymentsPaymentRestrictionValidation.php | 6 +-- src/Service/SaferPayOrderStatusService.php | 6 +-- src/Service/TranslatorInterface.php | 6 +-- src/ServiceProvider/BaseServiceProvider.php | 29 ++++++------ .../LeagueServiceContainerProvider.php | 29 ++++++------ src/ServiceProvider/index.php | 11 +++++ tests/Unit/Utility/PriceUtilityTest.php | 6 +-- tests/seed/database/index.php | 22 +++++++++ tests/seed/index.php | 22 +++++++++ tests/seed/settings1764/defines.inc.php | 31 ++++++------- tests/seed/settings1764/index.php | 22 +++++++++ tests/seed/settings1764/parameters.php | 22 +++++++++ tests/seed/settings1770/defines.inc.php | 31 ++++++------- tests/seed/settings1770/index.php | 22 +++++++++ tests/seed/settings1770/parameters.php | 22 +++++++++ tests/seed/settings1784/defines.inc.php | 31 ++++++------- tests/seed/settings1784/index.php | 22 +++++++++ tests/seed/settings1784/parameters.php | 22 +++++++++ tests/seed/settings1786/defines.inc.php | 31 ++++++------- tests/seed/settings1786/index.php | 22 +++++++++ tests/seed/settings1786/parameters.php | 22 +++++++++ translations/index.php | 11 +++++ upgrade/install-1.0.13.php | 6 +-- upgrade/install-1.0.18.php | 6 +-- views/css/admin/logs_tab.css | 21 +++++++++ views/css/admin/saferpay_admin_order.css | 21 +++++++++ .../css/front/hosted-templates/template1.css | 21 +++++++++ .../css/front/hosted-templates/template2.css | 21 +++++++++ .../css/front/hosted-templates/template3.css | 21 +++++++++ views/css/front/saferpay_checkout_16.css | 21 +++++++++ .../front/hosted-templates/index.php | 45 +++++++++---------- 69 files changed, 919 insertions(+), 221 deletions(-) create mode 100644 .htaccess create mode 100644 cypress/fixtures/index.php create mode 100644 cypress/index.php create mode 100644 cypress/integration/index.php create mode 100644 cypress/plugins/index.php create mode 100644 cypress/support/index.php create mode 100644 src/Api/Enum/index.php create mode 100644 src/Core/Order/Verification/index.php create mode 100644 src/Core/Order/index.php create mode 100644 src/Core/index.php create mode 100644 src/DTO/Request/ObtainPaymentMethods/index.php create mode 100644 src/Factory/index.php create mode 100644 src/Presentation/Loader/index.php create mode 100644 src/Presentation/index.php create mode 100644 src/ServiceProvider/index.php create mode 100644 translations/index.php diff --git a/.htaccess b/.htaccess new file mode 100644 index 000000000..6d66d9b93 --- /dev/null +++ b/.htaccess @@ -0,0 +1,15 @@ +# Apache 2.2 + + Order deny,allow + Deny from all + + Allow from all + + +# Apache 2.4 + + Require all denied + + Require all granted + + \ No newline at end of file diff --git a/composer.json b/composer.json index 019a5c446..9c6ab08a2 100755 --- a/composer.json +++ b/composer.json @@ -35,7 +35,8 @@ "friendsofphp/php-cs-fixer": "*", "phpunit/phpunit": "*", "behat/behat": "*", - "symfony/translation": "*" + "symfony/translation": "*", + "prestashop/php-dev-tools": "^3.16" }, "scripts": { "test-integration": "./vendor/bin/phpunit --configuration ./tests/Integration/phpunit.xml", @@ -43,4 +44,4 @@ }, "author": "PrestaShop", "license": "AFL-3.0" -} +} \ No newline at end of file diff --git a/controllers/admin/index.php b/controllers/admin/index.php index 7e4131254..eeb2b1cf3 100755 --- a/controllers/admin/index.php +++ b/controllers/admin/index.php @@ -16,27 +16,9 @@ *versions in the future. If you wish to customize PrestaShop for your *needs please refer to http://www.prestashop.com for more information. * -{** - *NOTICE OF LICENSE - * - *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu *@copyright SIX Payment Services *@license SIX Payment Services - *} */ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); diff --git a/controllers/front/hostedIframe.php b/controllers/front/hostedIframe.php index 8c7c6699a..b11361206 100755 --- a/controllers/front/hostedIframe.php +++ b/controllers/front/hostedIframe.php @@ -16,9 +16,9 @@ *versions in the future. If you wish to customize PrestaShop for your *needs please refer to http://www.prestashop.com for more information. * - * @author INVERTUS UAB www.invertus.eu - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ use Invertus\SaferPay\Config\SaferPayConfig; diff --git a/controllers/front/pendingNotify.php b/controllers/front/pendingNotify.php index dc072ffdd..4e175fca6 100755 --- a/controllers/front/pendingNotify.php +++ b/controllers/front/pendingNotify.php @@ -16,9 +16,9 @@ *versions in the future. If you wish to customize PrestaShop for your *needs please refer to http://www.prestashop.com for more information. * - * @author INVERTUS UAB www.invertus.eu - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ use Invertus\SaferPay\Config\SaferPayConfig; diff --git a/cypress/fixtures/index.php b/cypress/fixtures/index.php new file mode 100644 index 000000000..15aba8204 --- /dev/null +++ b/cypress/fixtures/index.php @@ -0,0 +1,11 @@ + + *@copyright SIX Payment Services + *@license SIX Payment Services + */ /// /// function prepareCookie() diff --git a/cypress/integration/01_ps1770.Module.Configure.cy.js b/cypress/integration/01_ps1770.Module.Configure.cy.js index 3e42c3d72..9696c496c 100755 --- a/cypress/integration/01_ps1770.Module.Configure.cy.js +++ b/cypress/integration/01_ps1770.Module.Configure.cy.js @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ /// /// function prepareCookie() diff --git a/cypress/integration/01_ps1784.Module.Configure.cy.js b/cypress/integration/01_ps1784.Module.Configure.cy.js index ea315e126..8da2aae5b 100755 --- a/cypress/integration/01_ps1784.Module.Configure.cy.js +++ b/cypress/integration/01_ps1784.Module.Configure.cy.js @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ /// /// function prepareCookie() diff --git a/cypress/integration/01_ps1786.Module.Configure.cy.js b/cypress/integration/01_ps1786.Module.Configure.cy.js index 9e2fd8c22..0c8259a9d 100755 --- a/cypress/integration/01_ps1786.Module.Configure.cy.js +++ b/cypress/integration/01_ps1786.Module.Configure.cy.js @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ /// /// function prepareCookie() diff --git a/cypress/integration/02_ps1764.cy.js b/cypress/integration/02_ps1764.cy.js index 63323839d..bc108a05e 100755 --- a/cypress/integration/02_ps1764.cy.js +++ b/cypress/integration/02_ps1764.cy.js @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ /// /// function prepareCookie() diff --git a/cypress/integration/02_ps1770.cy.js b/cypress/integration/02_ps1770.cy.js index a3714ce6a..617cc2415 100755 --- a/cypress/integration/02_ps1770.cy.js +++ b/cypress/integration/02_ps1770.cy.js @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ /// /// function prepareCookie() diff --git a/cypress/integration/02_ps1784.cy.js b/cypress/integration/02_ps1784.cy.js index 1255efd4c..ab7fc4f4e 100755 --- a/cypress/integration/02_ps1784.cy.js +++ b/cypress/integration/02_ps1784.cy.js @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ /// /// function prepareCookie() diff --git a/cypress/integration/02_ps1786.cy.js b/cypress/integration/02_ps1786.cy.js index dbf89ef9c..c23daf447 100755 --- a/cypress/integration/02_ps1786.cy.js +++ b/cypress/integration/02_ps1786.cy.js @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ /// /// diff --git a/cypress/integration/index.php b/cypress/integration/index.php new file mode 100644 index 000000000..15aba8204 --- /dev/null +++ b/cypress/integration/index.php @@ -0,0 +1,11 @@ + + *@copyright SIX Payment Services + *@license SIX Payment Services + */ // *********************************************** // This example commands.js shows you how to // create various custom commands and overwrite diff --git a/cypress/support/index.js b/cypress/support/index.js index b83da1245..f25df3a05 100755 --- a/cypress/support/index.js +++ b/cypress/support/index.js @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ // *********************************************************** // This example support/e2e.js is processed and // loaded automatically before your test files. diff --git a/cypress/support/index.php b/cypress/support/index.php new file mode 100644 index 000000000..15aba8204 --- /dev/null +++ b/cypress/support/index.php @@ -0,0 +1,11 @@ + - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ class SaferPayOfficial extends PaymentModule { diff --git a/src/Api/Enum/index.php b/src/Api/Enum/index.php new file mode 100644 index 000000000..15aba8204 --- /dev/null +++ b/src/Api/Enum/index.php @@ -0,0 +1,11 @@ + *@copyright SIX Payment Services *@license SIX Payment Services - *} */ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); diff --git a/src/Core/Order/Verification/index.php b/src/Core/Order/Verification/index.php new file mode 100644 index 000000000..15aba8204 --- /dev/null +++ b/src/Core/Order/Verification/index.php @@ -0,0 +1,11 @@ + *@copyright SIX Payment Services *@license SIX Payment Services - *} */ namespace Invertus\SaferPay\DTO\Response; diff --git a/src/Factory/ModuleFactory.php b/src/Factory/ModuleFactory.php index 67cd54e89..cbcd5603e 100755 --- a/src/Factory/ModuleFactory.php +++ b/src/Factory/ModuleFactory.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + namespace Invertus\SaferPay\Factory; diff --git a/src/Factory/index.php b/src/Factory/index.php new file mode 100644 index 000000000..15aba8204 --- /dev/null +++ b/src/Factory/index.php @@ -0,0 +1,11 @@ + - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ namespace Invertus\SaferPay\Provider; diff --git a/src/Service/LegacyTranslator.php b/src/Service/LegacyTranslator.php index 9c701d4e7..c5f5873a7 100755 --- a/src/Service/LegacyTranslator.php +++ b/src/Service/LegacyTranslator.php @@ -16,9 +16,9 @@ *versions in the future. If you wish to customize PrestaShop for your *needs please refer to http://www.prestashop.com for more information. * - * @author INVERTUS UAB www.invertus.eu - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ namespace Invertus\SaferPay\Service; diff --git a/src/Service/PaymentRestrictionValidation/ApplePayPaymentRestrictionValidation.php b/src/Service/PaymentRestrictionValidation/ApplePayPaymentRestrictionValidation.php index 65dfb141f..345e6d69e 100755 --- a/src/Service/PaymentRestrictionValidation/ApplePayPaymentRestrictionValidation.php +++ b/src/Service/PaymentRestrictionValidation/ApplePayPaymentRestrictionValidation.php @@ -16,9 +16,9 @@ *versions in the future. If you wish to customize PrestaShop for your *needs please refer to http://www.prestashop.com for more information. * - * @author INVERTUS UAB www.invertus.eu - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ namespace Invertus\SaferPay\Service\PaymentRestrictionValidation; diff --git a/src/Service/PaymentRestrictionValidation/KlarnaPaymentRestrictionValidation.php b/src/Service/PaymentRestrictionValidation/KlarnaPaymentRestrictionValidation.php index 1865c5346..a39be7957 100755 --- a/src/Service/PaymentRestrictionValidation/KlarnaPaymentRestrictionValidation.php +++ b/src/Service/PaymentRestrictionValidation/KlarnaPaymentRestrictionValidation.php @@ -16,9 +16,9 @@ *versions in the future. If you wish to customize PrestaShop for your *needs please refer to http://www.prestashop.com for more information. * - * @author INVERTUS UAB www.invertus.eu - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ namespace Invertus\SaferPay\Service\PaymentRestrictionValidation; diff --git a/src/Service/PaymentRestrictionValidation/PaymentRestrictionValidationInterface.php b/src/Service/PaymentRestrictionValidation/PaymentRestrictionValidationInterface.php index 8ca84e478..476b93017 100755 --- a/src/Service/PaymentRestrictionValidation/PaymentRestrictionValidationInterface.php +++ b/src/Service/PaymentRestrictionValidation/PaymentRestrictionValidationInterface.php @@ -16,9 +16,9 @@ *versions in the future. If you wish to customize PrestaShop for your *needs please refer to http://www.prestashop.com for more information. * - * @author INVERTUS UAB www.invertus.eu - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ namespace Invertus\SaferPay\Service\PaymentRestrictionValidation; diff --git a/src/Service/PaymentRestrictionValidation/WlcryptopaymentsPaymentRestrictionValidation.php b/src/Service/PaymentRestrictionValidation/WlcryptopaymentsPaymentRestrictionValidation.php index 32b3f8447..0c4b9ca43 100755 --- a/src/Service/PaymentRestrictionValidation/WlcryptopaymentsPaymentRestrictionValidation.php +++ b/src/Service/PaymentRestrictionValidation/WlcryptopaymentsPaymentRestrictionValidation.php @@ -16,9 +16,9 @@ *versions in the future. If you wish to customize PrestaShop for your *needs please refer to http://www.prestashop.com for more information. * - * @author INVERTUS UAB www.invertus.eu - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ namespace Invertus\SaferPay\Service\PaymentRestrictionValidation; diff --git a/src/Service/SaferPayOrderStatusService.php b/src/Service/SaferPayOrderStatusService.php index b3acef27b..c4077bb1d 100755 --- a/src/Service/SaferPayOrderStatusService.php +++ b/src/Service/SaferPayOrderStatusService.php @@ -16,9 +16,9 @@ *versions in the future. If you wish to customize PrestaShop for your *needs please refer to http://www.prestashop.com for more information. * - * @author INVERTUS UAB www.invertus.eu - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ namespace Invertus\SaferPay\Service; diff --git a/src/Service/TranslatorInterface.php b/src/Service/TranslatorInterface.php index 347cc9880..2bb37f668 100755 --- a/src/Service/TranslatorInterface.php +++ b/src/Service/TranslatorInterface.php @@ -16,9 +16,9 @@ *versions in the future. If you wish to customize PrestaShop for your *needs please refer to http://www.prestashop.com for more information. * - * @author INVERTUS UAB www.invertus.eu - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ namespace Invertus\SaferPay\Service; diff --git a/src/ServiceProvider/BaseServiceProvider.php b/src/ServiceProvider/BaseServiceProvider.php index f1788bc9a..28a93314f 100755 --- a/src/ServiceProvider/BaseServiceProvider.php +++ b/src/ServiceProvider/BaseServiceProvider.php @@ -1,21 +1,24 @@ - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 + * 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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ namespace Invertus\SaferPay\ServiceProvider; diff --git a/src/ServiceProvider/LeagueServiceContainerProvider.php b/src/ServiceProvider/LeagueServiceContainerProvider.php index e208ae228..085c9029b 100755 --- a/src/ServiceProvider/LeagueServiceContainerProvider.php +++ b/src/ServiceProvider/LeagueServiceContainerProvider.php @@ -1,21 +1,24 @@ - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 + * 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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ namespace Invertus\SaferPay\ServiceProvider; diff --git a/src/ServiceProvider/index.php b/src/ServiceProvider/index.php new file mode 100644 index 000000000..15aba8204 --- /dev/null +++ b/src/ServiceProvider/index.php @@ -0,0 +1,11 @@ + - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ namespace Invertus\SaferPay\Tests\Unit\Utility; diff --git a/tests/seed/database/index.php b/tests/seed/database/index.php index 88355f610..ba024d25f 100755 --- a/tests/seed/database/index.php +++ b/tests/seed/database/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/tests/seed/index.php b/tests/seed/index.php index 88355f610..ba024d25f 100755 --- a/tests/seed/index.php +++ b/tests/seed/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/tests/seed/settings1764/defines.inc.php b/tests/seed/settings1764/defines.inc.php index 47f30550d..567ce7147 100755 --- a/tests/seed/settings1764/defines.inc.php +++ b/tests/seed/settings1764/defines.inc.php @@ -1,27 +1,24 @@ - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ /* Debug only */ diff --git a/tests/seed/settings1764/index.php b/tests/seed/settings1764/index.php index 88355f610..ba024d25f 100755 --- a/tests/seed/settings1764/index.php +++ b/tests/seed/settings1764/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/tests/seed/settings1764/parameters.php b/tests/seed/settings1764/parameters.php index cb2cebadc..565e8c59c 100755 --- a/tests/seed/settings1764/parameters.php +++ b/tests/seed/settings1764/parameters.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + return [ 'parameters' => [ diff --git a/tests/seed/settings1770/defines.inc.php b/tests/seed/settings1770/defines.inc.php index 47f30550d..567ce7147 100755 --- a/tests/seed/settings1770/defines.inc.php +++ b/tests/seed/settings1770/defines.inc.php @@ -1,27 +1,24 @@ - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ /* Debug only */ diff --git a/tests/seed/settings1770/index.php b/tests/seed/settings1770/index.php index 88355f610..ba024d25f 100755 --- a/tests/seed/settings1770/index.php +++ b/tests/seed/settings1770/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/tests/seed/settings1770/parameters.php b/tests/seed/settings1770/parameters.php index cb2cebadc..565e8c59c 100755 --- a/tests/seed/settings1770/parameters.php +++ b/tests/seed/settings1770/parameters.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + return [ 'parameters' => [ diff --git a/tests/seed/settings1784/defines.inc.php b/tests/seed/settings1784/defines.inc.php index 47f30550d..567ce7147 100755 --- a/tests/seed/settings1784/defines.inc.php +++ b/tests/seed/settings1784/defines.inc.php @@ -1,27 +1,24 @@ - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ /* Debug only */ diff --git a/tests/seed/settings1784/index.php b/tests/seed/settings1784/index.php index 88355f610..ba024d25f 100755 --- a/tests/seed/settings1784/index.php +++ b/tests/seed/settings1784/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/tests/seed/settings1784/parameters.php b/tests/seed/settings1784/parameters.php index cb2cebadc..565e8c59c 100755 --- a/tests/seed/settings1784/parameters.php +++ b/tests/seed/settings1784/parameters.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + return [ 'parameters' => [ diff --git a/tests/seed/settings1786/defines.inc.php b/tests/seed/settings1786/defines.inc.php index 47f30550d..567ce7147 100755 --- a/tests/seed/settings1786/defines.inc.php +++ b/tests/seed/settings1786/defines.inc.php @@ -1,27 +1,24 @@ - * @copyright Since 2007 PrestaShop SA and Contributors - * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ /* Debug only */ diff --git a/tests/seed/settings1786/index.php b/tests/seed/settings1786/index.php index 88355f610..ba024d25f 100755 --- a/tests/seed/settings1786/index.php +++ b/tests/seed/settings1786/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/tests/seed/settings1786/parameters.php b/tests/seed/settings1786/parameters.php index cb2cebadc..565e8c59c 100755 --- a/tests/seed/settings1786/parameters.php +++ b/tests/seed/settings1786/parameters.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + return [ 'parameters' => [ diff --git a/translations/index.php b/translations/index.php new file mode 100644 index 000000000..15aba8204 --- /dev/null +++ b/translations/index.php @@ -0,0 +1,11 @@ + - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ use Invertus\SaferPay\Install\Installer; diff --git a/upgrade/install-1.0.18.php b/upgrade/install-1.0.18.php index a99d12b42..7c2a6e405 100755 --- a/upgrade/install-1.0.18.php +++ b/upgrade/install-1.0.18.php @@ -16,9 +16,9 @@ *versions in the future. If you wish to customize PrestaShop for your *needs please refer to http://www.prestashop.com for more information. * - * @author INVERTUS UAB www.invertus.eu - * @copyright SIX Payment Services - * @license SIX Payment Services + *@author INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services */ use Invertus\SaferPay\Config\SaferPayConfig; diff --git a/views/css/admin/logs_tab.css b/views/css/admin/logs_tab.css index cccdef7db..f679c02ce 100755 --- a/views/css/admin/logs_tab.css +++ b/views/css/admin/logs_tab.css @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ .saferpay-text-break { word-break: break-all; width: 700px; diff --git a/views/css/admin/saferpay_admin_order.css b/views/css/admin/saferpay_admin_order.css index b317bc376..548c95357 100755 --- a/views/css/admin/saferpay_admin_order.css +++ b/views/css/admin/saferpay_admin_order.css @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ .saferpay-refund-button{ display: inline-block; margin-left: 10px; diff --git a/views/css/front/hosted-templates/template1.css b/views/css/front/hosted-templates/template1.css index 4ae5bce94..42d99342f 100755 --- a/views/css/front/hosted-templates/template1.css +++ b/views/css/front/hosted-templates/template1.css @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ #main { background-color: #fff; padding: 36px 42px; diff --git a/views/css/front/hosted-templates/template2.css b/views/css/front/hosted-templates/template2.css index 9f0286fb8..8d8d7911a 100755 --- a/views/css/front/hosted-templates/template2.css +++ b/views/css/front/hosted-templates/template2.css @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ #main { background-color: #fff; padding: 36px 42px; diff --git a/views/css/front/hosted-templates/template3.css b/views/css/front/hosted-templates/template3.css index b5cbba81a..1ee756eff 100755 --- a/views/css/front/hosted-templates/template3.css +++ b/views/css/front/hosted-templates/template3.css @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ .input-box .col { padding-right: 0; padding-left: 0; diff --git a/views/css/front/saferpay_checkout_16.css b/views/css/front/saferpay_checkout_16.css index 64b88cc02..34975f753 100755 --- a/views/css/front/saferpay_checkout_16.css +++ b/views/css/front/saferpay_checkout_16.css @@ -1,3 +1,24 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ .payment_module a.saferpay_method { padding-left: 10px; } diff --git a/views/templates/front/hosted-templates/index.php b/views/templates/front/hosted-templates/index.php index e33fa241b..aafc1748d 100755 --- a/views/templates/front/hosted-templates/index.php +++ b/views/templates/front/hosted-templates/index.php @@ -1,28 +1,25 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); From 0bd450806839cbc267627e3e55fdd0e5913db86c Mon Sep 17 00:00:00 2001 From: Gytautas Date: Fri, 27 Oct 2023 11:51:26 +0300 Subject: [PATCH 2/9] added prestashop context check in every php file --- controllers/admin/AdminSaferPayOfficialFieldsController.php | 4 ++++ controllers/admin/AdminSaferPayOfficialLogsController.php | 4 ++++ controllers/admin/AdminSaferPayOfficialModuleController.php | 4 ++++ controllers/admin/AdminSaferPayOfficialOrderController.php | 4 ++++ controllers/admin/AdminSaferPayOfficialPaymentController.php | 4 ++++ .../admin/AdminSaferPayOfficialSettingsController.php | 4 ++++ saferpayofficial.php | 5 +++++ src/Adapter/LegacyContext.php | 4 ++++ src/Api/ApiRequest.php | 4 ++++ src/Api/Enum/TransactionStatus.php | 4 ++++ src/Builder/OrderConfirmationMessageTemplate.php | 4 ++++ src/Config/SaferPayConfig.php | 4 ++++ src/Controller/AbstractSaferPayController.php | 4 ++++ .../Order/Verification/CanSendOrderConfirmationEmail.php | 4 ++++ src/DTO/Request/Address.php | 4 ++++ src/DTO/Request/Assert/AssertRequest.php | 4 ++++ src/DTO/Request/AssertRefund/AssertRefundRequest.php | 4 ++++ src/DTO/Request/Authorization/AuthorizationRequest.php | 4 ++++ src/DTO/Request/Cancel/CancelRequest.php | 4 ++++ src/DTO/Request/Capture/CaptureRequest.php | 4 ++++ src/DTO/Request/DeliveryAddressForm.php | 4 ++++ src/DTO/Request/Initialize/InitializeRequest.php | 4 ++++ .../ObtainPaymentMethods/ObtainPaymentMethodsRequest.php | 4 ++++ src/DTO/Request/Order.php | 4 ++++ src/DTO/Request/OrderItem.php | 4 ++++ src/DTO/Request/Payer.php | 4 ++++ src/DTO/Request/PayerProfile.php | 4 ++++ src/DTO/Request/Payment.php | 4 ++++ src/DTO/Request/PendingNotification.php | 4 ++++ src/DTO/Request/Refund/RefundRequest.php | 4 ++++ src/DTO/Request/RequestHeader.php | 4 ++++ src/DTO/Request/ReturnUrl.php | 4 ++++ src/DTO/Request/SaferPayNotification.php | 4 ++++ src/DTO/Response/Amount.php | 4 ++++ src/DTO/Response/Assert/AssertBody.php | 4 ++++ src/DTO/Response/AssertRefund/AssertRefundBody.php | 4 ++++ src/DTO/Response/Authorization/AuthorizationBody.php | 4 ++++ src/DTO/Response/Brand.php | 4 ++++ src/DTO/Response/Card.php | 4 ++++ src/DTO/Response/Dcc.php | 4 ++++ src/DTO/Response/DeliveryAddress.php | 4 ++++ src/DTO/Response/FraudFree.php | 4 ++++ src/DTO/Response/Initialize/InitializeBody.php | 4 ++++ src/DTO/Response/Liability.php | 4 ++++ src/DTO/Response/Payer.php | 4 ++++ src/DTO/Response/PaymentMeans.php | 4 ++++ src/DTO/Response/RegistrationResult.php | 4 ++++ src/DTO/Response/ResponseHeader.php | 4 ++++ src/DTO/Response/ThreeDs.php | 4 ++++ src/DTO/Response/Transaction.php | 4 ++++ src/Entity/SaferPayAssert.php | 4 ++++ src/Entity/SaferPayAssertRefund.php | 4 ++++ src/Entity/SaferPayCardAlias.php | 4 ++++ src/Entity/SaferPayCountry.php | 4 ++++ src/Entity/SaferPayCurrency.php | 4 ++++ src/Entity/SaferPayField.php | 4 ++++ src/Entity/SaferPayLog.php | 4 ++++ src/Entity/SaferPayLogo.php | 4 ++++ src/Entity/SaferPayOrder.php | 4 ++++ src/Entity/SaferPayOrderRefund.php | 4 ++++ src/Entity/SaferPayPayment.php | 4 ++++ src/EntityBuilder/SaferPayAssertBuilder.php | 4 ++++ src/EntityBuilder/SaferPayAssertRefundBuilder.php | 4 ++++ src/EntityBuilder/SaferPayCardAliasBuilder.php | 4 ++++ src/EntityBuilder/SaferPayOrderBuilder.php | 4 ++++ src/Enum/ControllerName.php | 4 ++++ src/Enum/GenderEnum.php | 4 ++++ src/Enum/PaymentType.php | 4 ++++ src/Exception/Api/SaferPayApiException.php | 4 ++++ src/Exception/Restriction/RestrictionException.php | 4 ++++ src/Exception/Restriction/WrongRestrictionTypeException.php | 4 ++++ src/Factory/ModuleFactory.php | 4 ++++ src/Install/AbstractInstaller.php | 4 ++++ src/Install/Installer.php | 4 ++++ src/Install/Uninstaller.php | 4 ++++ src/Presentation/Loader/PaymentFormAssetLoader.php | 4 ++++ src/Presenter/AdminOrderPagePresenter.php | 4 ++++ src/Presenter/AssertPresenter.php | 4 ++++ src/Provider/BasicIdempotencyProvider.php | 1 - src/Provider/IdempotencyProviderInterface.php | 1 - src/Provider/PaymentRedirectionProvider.php | 4 ++++ src/Provider/PaymentRestrictionProvider.php | 4 ++++ src/Provider/PaymentRestrictionProviderInterface.php | 4 ++++ src/Provider/PaymentTypeProvider.php | 4 ++++ src/Repository/AbstractRepository.php | 4 ++++ src/Repository/OrderRepository.php | 4 ++++ src/Repository/OrderRepositoryInterface.php | 4 ++++ src/Repository/ReadOnlyRepositoryInterface.php | 4 ++++ src/Repository/SaferPayCardAliasRepository.php | 4 ++++ src/Repository/SaferPayFieldRepository.php | 4 ++++ src/Repository/SaferPayLogoRepository.php | 4 ++++ src/Repository/SaferPayOrderRepository.php | 4 ++++ src/Repository/SaferPayPaymentRepository.php | 4 ++++ src/Repository/SaferPayRestrictionRepository.php | 4 ++++ src/Repository/SaferPaySavedCreditCardRepository.php | 4 ++++ src/Service/CartDuplicationService.php | 4 ++++ src/Service/LegacyTranslator.php | 4 ++++ src/Service/PaymentRestrictionValidation.php | 4 ++++ .../ApplePayPaymentRestrictionValidation.php | 4 ++++ .../BasePaymentRestrictionValidation.php | 4 ++++ .../KlarnaPaymentRestrictionValidation.php | 4 ++++ .../PaymentRestrictionValidationInterface.php | 4 ++++ .../WlcryptopaymentsPaymentRestrictionValidation.php | 4 ++++ src/Service/Request/AssertRefundRequestObjectCreator.php | 4 ++++ src/Service/Request/AssertRequestObjectCreator.php | 4 ++++ src/Service/Request/AuthorizationRequestObjectCreator.php | 4 ++++ src/Service/Request/CancelRequestObjectCreator.php | 4 ++++ src/Service/Request/CaptureRequestObjectCreator.php | 4 ++++ src/Service/Request/InitializeRequestObjectCreator.php | 4 ++++ src/Service/Request/ObtainPaymentMethodsObjectCreator.php | 4 ++++ src/Service/Request/RefundRequestObjectCreator.php | 4 ++++ src/Service/Request/RequestObjectCreator.php | 4 ++++ src/Service/Response/AssertRefundResponseObjectCreator.php | 4 ++++ src/Service/Response/AssertResponseObjectCreator.php | 4 ++++ src/Service/Response/AuthorizationResponseObjectCreator.php | 4 ++++ src/Service/Response/InitializeResponseObjectCreator.php | 4 ++++ src/Service/Response/ResponseObjectCreator.php | 4 ++++ src/Service/SaferPayCartService.php | 4 ++++ src/Service/SaferPayErrorDisplayService.php | 4 ++++ src/Service/SaferPayExceptionService.php | 4 ++++ src/Service/SaferPayFieldCreator.php | 4 ++++ src/Service/SaferPayInitialize.php | 4 ++++ src/Service/SaferPayLogoCreator.php | 4 ++++ src/Service/SaferPayMailService.php | 4 ++++ src/Service/SaferPayObtainPaymentMethods.php | 4 ++++ src/Service/SaferPayOrderStatusService.php | 4 ++++ src/Service/SaferPayPaymentCreator.php | 5 ++++- src/Service/SaferPayPaymentNotation.php | 5 ++++- src/Service/SaferPayRefreshPaymentsService.php | 4 ++++ src/Service/SaferPayRestrictionCreator.php | 4 ++++ src/Service/TransactionFlow/SaferPayTransactionAssertion.php | 4 ++++ .../TransactionFlow/SaferPayTransactionAuthorization.php | 4 ++++ .../TransactionFlow/SaferPayTransactionRefundAssertion.php | 4 ++++ src/Service/TranslatorInterface.php | 4 ++++ src/ServiceProvider/BaseServiceProvider.php | 4 ++++ src/ServiceProvider/LeagueServiceContainerProvider.php | 4 ++++ src/ServiceProvider/ServiceContainerProviderInterface.php | 4 ++++ src/Utility/PriceUtility.php | 4 ++++ 138 files changed, 545 insertions(+), 4 deletions(-) diff --git a/controllers/admin/AdminSaferPayOfficialFieldsController.php b/controllers/admin/AdminSaferPayOfficialFieldsController.php index c555add4a..4ce49b591 100755 --- a/controllers/admin/AdminSaferPayOfficialFieldsController.php +++ b/controllers/admin/AdminSaferPayOfficialFieldsController.php @@ -23,6 +23,10 @@ use Invertus\SaferPay\Config\SaferPayConfig; +if (!defined('_PS_VERSION_')) { + exit; +} + class AdminSaferPayOfficialFieldsController extends ModuleAdminController { public function __construct() diff --git a/controllers/admin/AdminSaferPayOfficialLogsController.php b/controllers/admin/AdminSaferPayOfficialLogsController.php index 87a59157d..e20dcbb8b 100755 --- a/controllers/admin/AdminSaferPayOfficialLogsController.php +++ b/controllers/admin/AdminSaferPayOfficialLogsController.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + class AdminSaferPayOfficialLogsController extends ModuleAdminController { public function __construct() diff --git a/controllers/admin/AdminSaferPayOfficialModuleController.php b/controllers/admin/AdminSaferPayOfficialModuleController.php index dee3b160f..31f099377 100755 --- a/controllers/admin/AdminSaferPayOfficialModuleController.php +++ b/controllers/admin/AdminSaferPayOfficialModuleController.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + class AdminSaferPayOfficialModuleController extends ModuleAdminController { public function init() diff --git a/controllers/admin/AdminSaferPayOfficialOrderController.php b/controllers/admin/AdminSaferPayOfficialOrderController.php index 6d14f4f8a..2facdb024 100755 --- a/controllers/admin/AdminSaferPayOfficialOrderController.php +++ b/controllers/admin/AdminSaferPayOfficialOrderController.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + class AdminSaferPayOfficialOrderController extends ModuleAdminController { public function __construct() diff --git a/controllers/admin/AdminSaferPayOfficialPaymentController.php b/controllers/admin/AdminSaferPayOfficialPaymentController.php index 056c9ce6b..aa24a9c64 100755 --- a/controllers/admin/AdminSaferPayOfficialPaymentController.php +++ b/controllers/admin/AdminSaferPayOfficialPaymentController.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + use Invertus\SaferPay\Config\SaferPayConfig; use Invertus\SaferPay\Exception\Restriction\RestrictionException; use Invertus\SaferPay\Repository\SaferPayFieldRepository; diff --git a/controllers/admin/AdminSaferPayOfficialSettingsController.php b/controllers/admin/AdminSaferPayOfficialSettingsController.php index 0b7e0f160..7eaad21a0 100755 --- a/controllers/admin/AdminSaferPayOfficialSettingsController.php +++ b/controllers/admin/AdminSaferPayOfficialSettingsController.php @@ -24,6 +24,10 @@ use Invertus\SaferPay\Config\SaferPayConfig; use Invertus\SaferPay\Repository\SaferPaySavedCreditCardRepository; +if (!defined('_PS_VERSION_')) { + exit; +} + class AdminSaferPayOfficialSettingsController extends ModuleAdminController { public function __construct() diff --git a/saferpayofficial.php b/saferpayofficial.php index fba30b7cc..f0c94ba1f 100755 --- a/saferpayofficial.php +++ b/saferpayofficial.php @@ -21,6 +21,11 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ + +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficial extends PaymentModule { const ADMIN_SAFERPAY_MODULE_CONTROLLER = 'AdminSaferPayOfficialModule'; diff --git a/src/Adapter/LegacyContext.php b/src/Adapter/LegacyContext.php index c32a1bf9b..2a5c8e015 100755 --- a/src/Adapter/LegacyContext.php +++ b/src/Adapter/LegacyContext.php @@ -25,6 +25,10 @@ use Context; +if (!defined('_PS_VERSION_')) { + exit; +} + class LegacyContext { public function getContext() diff --git a/src/Api/ApiRequest.php b/src/Api/ApiRequest.php index d6651a53c..f6c964d53 100755 --- a/src/Api/ApiRequest.php +++ b/src/Api/ApiRequest.php @@ -31,6 +31,10 @@ use Unirest\Request; use Unirest\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class ApiRequest { /** diff --git a/src/Api/Enum/TransactionStatus.php b/src/Api/Enum/TransactionStatus.php index 2848f39f7..be7edec38 100644 --- a/src/Api/Enum/TransactionStatus.php +++ b/src/Api/Enum/TransactionStatus.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\Api\Enum; +if (!defined('_PS_VERSION_')) { + exit; +} + class TransactionStatus { const AUTHORIZED = 'AUTHORIZED'; diff --git a/src/Builder/OrderConfirmationMessageTemplate.php b/src/Builder/OrderConfirmationMessageTemplate.php index 8a9fe3475..9e2cba576 100755 --- a/src/Builder/OrderConfirmationMessageTemplate.php +++ b/src/Builder/OrderConfirmationMessageTemplate.php @@ -26,6 +26,10 @@ use Invertus\SaferPay\Factory\ModuleFactory; use SaferPayOfficial; +if (!defined('_PS_VERSION_')) { + exit; +} + class OrderConfirmationMessageTemplate { /** diff --git a/src/Config/SaferPayConfig.php b/src/Config/SaferPayConfig.php index 071aac2eb..59b044700 100755 --- a/src/Config/SaferPayConfig.php +++ b/src/Config/SaferPayConfig.php @@ -26,6 +26,10 @@ use Configuration; use Invertus\SaferPay\DTO\Request\RequestHeader; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayConfig { const TEST_API = 'https://test.saferpay.com/api/'; diff --git a/src/Controller/AbstractSaferPayController.php b/src/Controller/AbstractSaferPayController.php index 261cfb2af..f45fefd63 100755 --- a/src/Controller/AbstractSaferPayController.php +++ b/src/Controller/AbstractSaferPayController.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\Config\SaferPayConfig; +if (!defined('_PS_VERSION_')) { + exit; +} + class AbstractSaferPayController extends \ModuleFrontControllerCore { public function redirectWithNotifications() diff --git a/src/Core/Order/Verification/CanSendOrderConfirmationEmail.php b/src/Core/Order/Verification/CanSendOrderConfirmationEmail.php index 11166f7b5..a3b0598f5 100644 --- a/src/Core/Order/Verification/CanSendOrderConfirmationEmail.php +++ b/src/Core/Order/Verification/CanSendOrderConfirmationEmail.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\Config\SaferPayConfig; +if (!defined('_PS_VERSION_')) { + exit; +} + class CanSendOrderConfirmationEmail { public function verify(\Order $order, $orderStatusId) diff --git a/src/DTO/Request/Address.php b/src/DTO/Request/Address.php index 3739821d8..7d4373efd 100755 --- a/src/DTO/Request/Address.php +++ b/src/DTO/Request/Address.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Request; +if (!defined('_PS_VERSION_')) { + exit; +} + class Address { private $firstName; diff --git a/src/DTO/Request/Assert/AssertRequest.php b/src/DTO/Request/Assert/AssertRequest.php index 5de20abef..5b3b90c77 100755 --- a/src/DTO/Request/Assert/AssertRequest.php +++ b/src/DTO/Request/Assert/AssertRequest.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\DTO\Request\RequestHeader; +if (!defined('_PS_VERSION_')) { + exit; +} + class AssertRequest { diff --git a/src/DTO/Request/AssertRefund/AssertRefundRequest.php b/src/DTO/Request/AssertRefund/AssertRefundRequest.php index b125a31b1..512b03d53 100755 --- a/src/DTO/Request/AssertRefund/AssertRefundRequest.php +++ b/src/DTO/Request/AssertRefund/AssertRefundRequest.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\DTO\Request\RequestHeader; +if (!defined('_PS_VERSION_')) { + exit; +} + class AssertRefundRequest { diff --git a/src/DTO/Request/Authorization/AuthorizationRequest.php b/src/DTO/Request/Authorization/AuthorizationRequest.php index 710d6b235..aaf4d5b52 100755 --- a/src/DTO/Request/Authorization/AuthorizationRequest.php +++ b/src/DTO/Request/Authorization/AuthorizationRequest.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\DTO\Request\RequestHeader; +if (!defined('_PS_VERSION_')) { + exit; +} + class AuthorizationRequest { diff --git a/src/DTO/Request/Cancel/CancelRequest.php b/src/DTO/Request/Cancel/CancelRequest.php index 743e21cb4..2052a672d 100755 --- a/src/DTO/Request/Cancel/CancelRequest.php +++ b/src/DTO/Request/Cancel/CancelRequest.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\DTO\Request\RequestHeader; +if (!defined('_PS_VERSION_')) { + exit; +} + class CancelRequest { diff --git a/src/DTO/Request/Capture/CaptureRequest.php b/src/DTO/Request/Capture/CaptureRequest.php index 11ecb3dae..074297d21 100755 --- a/src/DTO/Request/Capture/CaptureRequest.php +++ b/src/DTO/Request/Capture/CaptureRequest.php @@ -26,6 +26,10 @@ use Invertus\SaferPay\DTO\Request\Payment; use Invertus\SaferPay\DTO\Request\RequestHeader; +if (!defined('_PS_VERSION_')) { + exit; +} + class CaptureRequest { /** diff --git a/src/DTO/Request/DeliveryAddressForm.php b/src/DTO/Request/DeliveryAddressForm.php index 5f9e6cb0c..862849fcc 100755 --- a/src/DTO/Request/DeliveryAddressForm.php +++ b/src/DTO/Request/DeliveryAddressForm.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Request; +if (!defined('_PS_VERSION_')) { + exit; +} + class DeliveryAddressForm { const ADDRESS_SOURCE = 'NONE'; diff --git a/src/DTO/Request/Initialize/InitializeRequest.php b/src/DTO/Request/Initialize/InitializeRequest.php index 82e90e07f..860a3c777 100755 --- a/src/DTO/Request/Initialize/InitializeRequest.php +++ b/src/DTO/Request/Initialize/InitializeRequest.php @@ -34,6 +34,10 @@ use Invertus\SaferPay\DTO\Request\ReturnUrl; use Invertus\SaferPay\DTO\Request\SaferPayNotification; +if (!defined('_PS_VERSION_')) { + exit; +} + class InitializeRequest { diff --git a/src/DTO/Request/ObtainPaymentMethods/ObtainPaymentMethodsRequest.php b/src/DTO/Request/ObtainPaymentMethods/ObtainPaymentMethodsRequest.php index 45168b6da..844e70261 100755 --- a/src/DTO/Request/ObtainPaymentMethods/ObtainPaymentMethodsRequest.php +++ b/src/DTO/Request/ObtainPaymentMethods/ObtainPaymentMethodsRequest.php @@ -26,6 +26,10 @@ use Invertus\SaferPay\Config\SaferPayConfig; use Invertus\SaferPay\DTO\Request\RequestHeader; +if (!defined('_PS_VERSION_')) { + exit; +} + class ObtainPaymentMethodsRequest { private $requestHeader; diff --git a/src/DTO/Request/Order.php b/src/DTO/Request/Order.php index 12d00108a..c4b17b215 100755 --- a/src/DTO/Request/Order.php +++ b/src/DTO/Request/Order.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Request; +if (!defined('_PS_VERSION_')) { + exit; +} + class Order { private $items = []; diff --git a/src/DTO/Request/OrderItem.php b/src/DTO/Request/OrderItem.php index eafc09273..27a5073e2 100755 --- a/src/DTO/Request/OrderItem.php +++ b/src/DTO/Request/OrderItem.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Request; +if (!defined('_PS_VERSION_')) { + exit; +} + class OrderItem implements \JsonSerializable { const ITEM_PHYSICAL = 'PHYSICAL'; diff --git a/src/DTO/Request/Payer.php b/src/DTO/Request/Payer.php index 3c908fd68..18100105c 100755 --- a/src/DTO/Request/Payer.php +++ b/src/DTO/Request/Payer.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Request; +if (!defined('_PS_VERSION_')) { + exit; +} + class Payer { private $ipAddress; diff --git a/src/DTO/Request/PayerProfile.php b/src/DTO/Request/PayerProfile.php index d12781491..d66a61ea4 100755 --- a/src/DTO/Request/PayerProfile.php +++ b/src/DTO/Request/PayerProfile.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Request; +if (!defined('_PS_VERSION_')) { + exit; +} + class PayerProfile { /** diff --git a/src/DTO/Request/Payment.php b/src/DTO/Request/Payment.php index 4a2b6fa66..aeaa72472 100755 --- a/src/DTO/Request/Payment.php +++ b/src/DTO/Request/Payment.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Request; +if (!defined('_PS_VERSION_')) { + exit; +} + class Payment { /** diff --git a/src/DTO/Request/PendingNotification.php b/src/DTO/Request/PendingNotification.php index 9479cbbf4..ef02d107a 100755 --- a/src/DTO/Request/PendingNotification.php +++ b/src/DTO/Request/PendingNotification.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Request; +if (!defined('_PS_VERSION_')) { + exit; +} + class PendingNotification { /** diff --git a/src/DTO/Request/Refund/RefundRequest.php b/src/DTO/Request/Refund/RefundRequest.php index 14da741b0..7aca8f190 100755 --- a/src/DTO/Request/Refund/RefundRequest.php +++ b/src/DTO/Request/Refund/RefundRequest.php @@ -30,6 +30,10 @@ use Invertus\SaferPay\DTO\Request\RequestHeader; use Configuration; +if (!defined('_PS_VERSION_')) { + exit; +} + class RefundRequest { diff --git a/src/DTO/Request/RequestHeader.php b/src/DTO/Request/RequestHeader.php index 8145b4620..2d91a3ef9 100755 --- a/src/DTO/Request/RequestHeader.php +++ b/src/DTO/Request/RequestHeader.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Request; +if (!defined('_PS_VERSION_')) { + exit; +} + class RequestHeader { const SPEC_VERSION = 'SAFERPAY_SPEC_VERSION'; diff --git a/src/DTO/Request/ReturnUrl.php b/src/DTO/Request/ReturnUrl.php index e43268eaa..3feb085ce 100755 --- a/src/DTO/Request/ReturnUrl.php +++ b/src/DTO/Request/ReturnUrl.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Request; +if (!defined('_PS_VERSION_')) { + exit; +} + class ReturnUrl { private $returnUrl; diff --git a/src/DTO/Request/SaferPayNotification.php b/src/DTO/Request/SaferPayNotification.php index bf9b45927..ec85b3a09 100755 --- a/src/DTO/Request/SaferPayNotification.php +++ b/src/DTO/Request/SaferPayNotification.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Request; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayNotification { private $payerEmail; diff --git a/src/DTO/Response/Amount.php b/src/DTO/Response/Amount.php index 2c9fcaa62..99fcf398e 100755 --- a/src/DTO/Response/Amount.php +++ b/src/DTO/Response/Amount.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class Amount { /** diff --git a/src/DTO/Response/Assert/AssertBody.php b/src/DTO/Response/Assert/AssertBody.php index d3a39994d..a84308ddf 100755 --- a/src/DTO/Response/Assert/AssertBody.php +++ b/src/DTO/Response/Assert/AssertBody.php @@ -32,6 +32,10 @@ use Invertus\SaferPay\DTO\Response\ThreeDs; use Invertus\SaferPay\DTO\Response\Transaction; +if (!defined('_PS_VERSION_')) { + exit; +} + class AssertBody { /** diff --git a/src/DTO/Response/AssertRefund/AssertRefundBody.php b/src/DTO/Response/AssertRefund/AssertRefundBody.php index d436a200e..d61466f9c 100755 --- a/src/DTO/Response/AssertRefund/AssertRefundBody.php +++ b/src/DTO/Response/AssertRefund/AssertRefundBody.php @@ -32,6 +32,10 @@ use Invertus\SaferPay\DTO\Response\ThreeDs; use Invertus\SaferPay\DTO\Response\Transaction; +if (!defined('_PS_VERSION_')) { + exit; +} + class AssertRefundBody { /** diff --git a/src/DTO/Response/Authorization/AuthorizationBody.php b/src/DTO/Response/Authorization/AuthorizationBody.php index 9aa70f391..c234e962f 100755 --- a/src/DTO/Response/Authorization/AuthorizationBody.php +++ b/src/DTO/Response/Authorization/AuthorizationBody.php @@ -29,6 +29,10 @@ use Invertus\SaferPay\DTO\Response\ThreeDs; use Invertus\SaferPay\DTO\Response\Transaction; +if (!defined('_PS_VERSION_')) { + exit; +} + class AuthorizationBody { /** diff --git a/src/DTO/Response/Brand.php b/src/DTO/Response/Brand.php index aa00f2078..024ba3ae3 100755 --- a/src/DTO/Response/Brand.php +++ b/src/DTO/Response/Brand.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class Brand { /** diff --git a/src/DTO/Response/Card.php b/src/DTO/Response/Card.php index 2d10b42b8..ad12a5c83 100755 --- a/src/DTO/Response/Card.php +++ b/src/DTO/Response/Card.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class Card { /** diff --git a/src/DTO/Response/Dcc.php b/src/DTO/Response/Dcc.php index e69b6571d..5d150d35d 100755 --- a/src/DTO/Response/Dcc.php +++ b/src/DTO/Response/Dcc.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class Dcc { diff --git a/src/DTO/Response/DeliveryAddress.php b/src/DTO/Response/DeliveryAddress.php index eca0e1990..fb3c25cbc 100755 --- a/src/DTO/Response/DeliveryAddress.php +++ b/src/DTO/Response/DeliveryAddress.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class DeliveryAddress { /** diff --git a/src/DTO/Response/FraudFree.php b/src/DTO/Response/FraudFree.php index 3bce4557c..6d760eb38 100755 --- a/src/DTO/Response/FraudFree.php +++ b/src/DTO/Response/FraudFree.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class FraudFree { diff --git a/src/DTO/Response/Initialize/InitializeBody.php b/src/DTO/Response/Initialize/InitializeBody.php index fdfe7a5db..a9aa9e990 100755 --- a/src/DTO/Response/Initialize/InitializeBody.php +++ b/src/DTO/Response/Initialize/InitializeBody.php @@ -31,6 +31,10 @@ use Invertus\SaferPay\DTO\Response\ThreeDs; use Invertus\SaferPay\DTO\Response\Transaction; +if (!defined('_PS_VERSION_')) { + exit; +} + class InitializeBody { /** diff --git a/src/DTO/Response/Liability.php b/src/DTO/Response/Liability.php index 7902c93fa..c96a775c8 100755 --- a/src/DTO/Response/Liability.php +++ b/src/DTO/Response/Liability.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class Liability { diff --git a/src/DTO/Response/Payer.php b/src/DTO/Response/Payer.php index 79bc9dbb0..f660d5a6d 100755 --- a/src/DTO/Response/Payer.php +++ b/src/DTO/Response/Payer.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class Payer { diff --git a/src/DTO/Response/PaymentMeans.php b/src/DTO/Response/PaymentMeans.php index 09d9c2545..c80990e73 100755 --- a/src/DTO/Response/PaymentMeans.php +++ b/src/DTO/Response/PaymentMeans.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class PaymentMeans { /** diff --git a/src/DTO/Response/RegistrationResult.php b/src/DTO/Response/RegistrationResult.php index 10a5a2848..85f947805 100755 --- a/src/DTO/Response/RegistrationResult.php +++ b/src/DTO/Response/RegistrationResult.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class RegistrationResult { /** diff --git a/src/DTO/Response/ResponseHeader.php b/src/DTO/Response/ResponseHeader.php index c8885f27c..d3b6ef044 100755 --- a/src/DTO/Response/ResponseHeader.php +++ b/src/DTO/Response/ResponseHeader.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class ResponseHeader { /** diff --git a/src/DTO/Response/ThreeDs.php b/src/DTO/Response/ThreeDs.php index 2bafcfbe5..e764ff038 100755 --- a/src/DTO/Response/ThreeDs.php +++ b/src/DTO/Response/ThreeDs.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class ThreeDs { /** diff --git a/src/DTO/Response/Transaction.php b/src/DTO/Response/Transaction.php index 61dd5cf67..3a8948854 100755 --- a/src/DTO/Response/Transaction.php +++ b/src/DTO/Response/Transaction.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\DTO\Response; +if (!defined('_PS_VERSION_')) { + exit; +} + class Transaction { private $type; diff --git a/src/Entity/SaferPayAssert.php b/src/Entity/SaferPayAssert.php index 8686ae59e..e5f9a03fb 100755 --- a/src/Entity/SaferPayAssert.php +++ b/src/Entity/SaferPayAssert.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayAssert extends ObjectModel { public $id_saferpay_order; diff --git a/src/Entity/SaferPayAssertRefund.php b/src/Entity/SaferPayAssertRefund.php index 18b01e917..c1290913d 100755 --- a/src/Entity/SaferPayAssertRefund.php +++ b/src/Entity/SaferPayAssertRefund.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayAssertRefund extends ObjectModel { public $id_saferpay_order; diff --git a/src/Entity/SaferPayCardAlias.php b/src/Entity/SaferPayCardAlias.php index 055194f9a..b35b85244 100755 --- a/src/Entity/SaferPayCardAlias.php +++ b/src/Entity/SaferPayCardAlias.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayCardAlias extends ObjectModel { public $id_customer; diff --git a/src/Entity/SaferPayCountry.php b/src/Entity/SaferPayCountry.php index 49f83af04..f79177c16 100755 --- a/src/Entity/SaferPayCountry.php +++ b/src/Entity/SaferPayCountry.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + /** * Class SaferPayCountry */ diff --git a/src/Entity/SaferPayCurrency.php b/src/Entity/SaferPayCurrency.php index 8fe99b0cd..c0fabf5c3 100755 --- a/src/Entity/SaferPayCurrency.php +++ b/src/Entity/SaferPayCurrency.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + /** * Class SaferPayCurrency */ diff --git a/src/Entity/SaferPayField.php b/src/Entity/SaferPayField.php index 6edace9e6..279914e80 100755 --- a/src/Entity/SaferPayField.php +++ b/src/Entity/SaferPayField.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + /** * Class SaferPayField */ diff --git a/src/Entity/SaferPayLog.php b/src/Entity/SaferPayLog.php index 60f549061..c58429656 100755 --- a/src/Entity/SaferPayLog.php +++ b/src/Entity/SaferPayLog.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayLog extends ObjectModel { public $message; diff --git a/src/Entity/SaferPayLogo.php b/src/Entity/SaferPayLogo.php index 0904128ad..870a350e3 100755 --- a/src/Entity/SaferPayLogo.php +++ b/src/Entity/SaferPayLogo.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + /** * Class SaferPayLogo */ diff --git a/src/Entity/SaferPayOrder.php b/src/Entity/SaferPayOrder.php index dbc0d51f5..3930f6f34 100755 --- a/src/Entity/SaferPayOrder.php +++ b/src/Entity/SaferPayOrder.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + /** * Class SaferPayPayment */ diff --git a/src/Entity/SaferPayOrderRefund.php b/src/Entity/SaferPayOrderRefund.php index ac07f382b..36b7ea5cd 100755 --- a/src/Entity/SaferPayOrderRefund.php +++ b/src/Entity/SaferPayOrderRefund.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + /** * Class SaferPayPayment */ diff --git a/src/Entity/SaferPayPayment.php b/src/Entity/SaferPayPayment.php index 20d405564..869bb993a 100755 --- a/src/Entity/SaferPayPayment.php +++ b/src/Entity/SaferPayPayment.php @@ -21,6 +21,10 @@ *@license SIX Payment Services */ +if (!defined('_PS_VERSION_')) { + exit; +} + /** * Class SaferPayPayment */ diff --git a/src/EntityBuilder/SaferPayAssertBuilder.php b/src/EntityBuilder/SaferPayAssertBuilder.php index 358b5cab5..0dcd19333 100755 --- a/src/EntityBuilder/SaferPayAssertBuilder.php +++ b/src/EntityBuilder/SaferPayAssertBuilder.php @@ -26,6 +26,10 @@ use Invertus\SaferPay\DTO\Response\Assert\AssertBody; use SaferPayAssert; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayAssertBuilder { /** diff --git a/src/EntityBuilder/SaferPayAssertRefundBuilder.php b/src/EntityBuilder/SaferPayAssertRefundBuilder.php index 59ab9e874..4dada93ad 100755 --- a/src/EntityBuilder/SaferPayAssertRefundBuilder.php +++ b/src/EntityBuilder/SaferPayAssertRefundBuilder.php @@ -27,6 +27,10 @@ use Invertus\SaferPay\DTO\Response\AssertRefund\AssertRefundBody; use SaferPayAssert; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayAssertRefundBuilder { /** diff --git a/src/EntityBuilder/SaferPayCardAliasBuilder.php b/src/EntityBuilder/SaferPayCardAliasBuilder.php index b56540a42..08555dd0e 100755 --- a/src/EntityBuilder/SaferPayCardAliasBuilder.php +++ b/src/EntityBuilder/SaferPayCardAliasBuilder.php @@ -27,6 +27,10 @@ use Invertus\SaferPay\Repository\SaferPayCardAliasRepository; use SaferPayCardAlias; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayCardAliasBuilder { diff --git a/src/EntityBuilder/SaferPayOrderBuilder.php b/src/EntityBuilder/SaferPayOrderBuilder.php index dbf749aa7..d3418dcb2 100755 --- a/src/EntityBuilder/SaferPayOrderBuilder.php +++ b/src/EntityBuilder/SaferPayOrderBuilder.php @@ -28,6 +28,10 @@ use Order; use SaferPayOrder; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOrderBuilder { //TODO to pass $body as InitializeBody. diff --git a/src/Enum/ControllerName.php b/src/Enum/ControllerName.php index dc9fe82c4..47eeea74b 100755 --- a/src/Enum/ControllerName.php +++ b/src/Enum/ControllerName.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\Enum; +if (!defined('_PS_VERSION_')) { + exit; +} + class ControllerName { const AJAX = 'ajax'; diff --git a/src/Enum/GenderEnum.php b/src/Enum/GenderEnum.php index d479c05f9..60db3fddd 100755 --- a/src/Enum/GenderEnum.php +++ b/src/Enum/GenderEnum.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\Enum; +if (!defined('_PS_VERSION_')) { + exit; +} + class GenderEnum { const GENDER_MALE = 0; diff --git a/src/Enum/PaymentType.php b/src/Enum/PaymentType.php index ab707bedd..33269ed8c 100755 --- a/src/Enum/PaymentType.php +++ b/src/Enum/PaymentType.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\Enum; +if (!defined('_PS_VERSION_')) { + exit; +} + class PaymentType { const BASIC = 'basic'; diff --git a/src/Exception/Api/SaferPayApiException.php b/src/Exception/Api/SaferPayApiException.php index ebe4693df..c22ce94ea 100755 --- a/src/Exception/Api/SaferPayApiException.php +++ b/src/Exception/Api/SaferPayApiException.php @@ -25,6 +25,10 @@ use RuntimeException; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayApiException extends RuntimeException { const INITIALIZE = 0; diff --git a/src/Exception/Restriction/RestrictionException.php b/src/Exception/Restriction/RestrictionException.php index 2ff79b4fd..0fddc50c1 100755 --- a/src/Exception/Restriction/RestrictionException.php +++ b/src/Exception/Restriction/RestrictionException.php @@ -25,6 +25,10 @@ use RuntimeException; +if (!defined('_PS_VERSION_')) { + exit; +} + class RestrictionException extends RuntimeException { } diff --git a/src/Exception/Restriction/WrongRestrictionTypeException.php b/src/Exception/Restriction/WrongRestrictionTypeException.php index d8e50e1f2..9b908d7c7 100755 --- a/src/Exception/Restriction/WrongRestrictionTypeException.php +++ b/src/Exception/Restriction/WrongRestrictionTypeException.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\Exception\Restriction; +if (!defined('_PS_VERSION_')) { + exit; +} + class WrongRestrictionTypeException extends RestrictionException { } diff --git a/src/Factory/ModuleFactory.php b/src/Factory/ModuleFactory.php index cbcd5603e..ae6abcea4 100755 --- a/src/Factory/ModuleFactory.php +++ b/src/Factory/ModuleFactory.php @@ -26,6 +26,10 @@ use Module; +if (!defined('_PS_VERSION_')) { + exit; +} + class ModuleFactory { /** diff --git a/src/Install/AbstractInstaller.php b/src/Install/AbstractInstaller.php index 5d4c229a4..66c2fbb69 100755 --- a/src/Install/AbstractInstaller.php +++ b/src/Install/AbstractInstaller.php @@ -25,6 +25,10 @@ use SaferPayOfficial; +if (!defined('_PS_VERSION_')) { + exit; +} + abstract class AbstractInstaller { /** diff --git a/src/Install/Installer.php b/src/Install/Installer.php index 90d6c3c18..476b11a34 100755 --- a/src/Install/Installer.php +++ b/src/Install/Installer.php @@ -34,6 +34,10 @@ use OrderState; use Tab; +if (!defined('_PS_VERSION_')) { + exit; +} + /** * Class SaferPayInstaller */ diff --git a/src/Install/Uninstaller.php b/src/Install/Uninstaller.php index 5baa68825..fa583b19d 100755 --- a/src/Install/Uninstaller.php +++ b/src/Install/Uninstaller.php @@ -28,6 +28,10 @@ use Invertus\SaferPay\Config\SaferPayConfig; use Tab; +if (!defined('_PS_VERSION_')) { + exit; +} + class Uninstaller extends AbstractInstaller { private $errors = []; diff --git a/src/Presentation/Loader/PaymentFormAssetLoader.php b/src/Presentation/Loader/PaymentFormAssetLoader.php index 3b39e8b63..521b08208 100755 --- a/src/Presentation/Loader/PaymentFormAssetLoader.php +++ b/src/Presentation/Loader/PaymentFormAssetLoader.php @@ -31,6 +31,10 @@ use OrderControllerCore; use SaferPayOfficial; +if (!defined('_PS_VERSION_')) { + exit; +} + class PaymentFormAssetLoader { /** @var SaferPayOfficial */ diff --git a/src/Presenter/AdminOrderPagePresenter.php b/src/Presenter/AdminOrderPagePresenter.php index 3cdf88688..f2c047a66 100755 --- a/src/Presenter/AdminOrderPagePresenter.php +++ b/src/Presenter/AdminOrderPagePresenter.php @@ -25,6 +25,10 @@ use SaferPayOrder; +if (!defined('_PS_VERSION_')) { + exit; +} + class AdminOrderPagePresenter { public function present(SaferPayOrder $saferPayOrder, $action, $amountMultiplier, $currencySign) diff --git a/src/Presenter/AssertPresenter.php b/src/Presenter/AssertPresenter.php index dc05da96c..f10ebabdd 100755 --- a/src/Presenter/AssertPresenter.php +++ b/src/Presenter/AssertPresenter.php @@ -26,6 +26,10 @@ use SaferPayAssert; use SaferPayOfficial; +if (!defined('_PS_VERSION_')) { + exit; +} + class AssertPresenter { const FILE_NAME = 'AssertPresenter'; diff --git a/src/Provider/BasicIdempotencyProvider.php b/src/Provider/BasicIdempotencyProvider.php index 1ab4e6736..a70d30471 100644 --- a/src/Provider/BasicIdempotencyProvider.php +++ b/src/Provider/BasicIdempotencyProvider.php @@ -23,7 +23,6 @@ namespace Invertus\SaferPay\Provider; - if (!defined('_PS_VERSION_')) { exit; } diff --git a/src/Provider/IdempotencyProviderInterface.php b/src/Provider/IdempotencyProviderInterface.php index 4ca53d59d..9f4a5b7e7 100644 --- a/src/Provider/IdempotencyProviderInterface.php +++ b/src/Provider/IdempotencyProviderInterface.php @@ -23,7 +23,6 @@ namespace Invertus\SaferPay\Provider; - if (!defined('_PS_VERSION_')) { exit; } diff --git a/src/Provider/PaymentRedirectionProvider.php b/src/Provider/PaymentRedirectionProvider.php index 8cc334a81..51724023b 100755 --- a/src/Provider/PaymentRedirectionProvider.php +++ b/src/Provider/PaymentRedirectionProvider.php @@ -32,6 +32,10 @@ use Invertus\SaferPay\Factory\ModuleFactory; use Invertus\SaferPay\Repository\SaferPayFieldRepository; +if (!defined('_PS_VERSION_')) { + exit; +} + class PaymentRedirectionProvider { /** diff --git a/src/Provider/PaymentRestrictionProvider.php b/src/Provider/PaymentRestrictionProvider.php index d17c36b6b..3885d3dc3 100755 --- a/src/Provider/PaymentRestrictionProvider.php +++ b/src/Provider/PaymentRestrictionProvider.php @@ -28,6 +28,10 @@ use Invertus\SaferPay\Service\PaymentRestrictionValidation\KlarnaPaymentRestrictionValidation; use Invertus\SaferPay\Service\PaymentRestrictionValidation\PaymentRestrictionValidationInterface; +if (!defined('_PS_VERSION_')) { + exit; +} + class PaymentRestrictionProvider implements PaymentRestrictionProviderInterface { /** diff --git a/src/Provider/PaymentRestrictionProviderInterface.php b/src/Provider/PaymentRestrictionProviderInterface.php index f90e3e9d8..1b2a9c0e2 100755 --- a/src/Provider/PaymentRestrictionProviderInterface.php +++ b/src/Provider/PaymentRestrictionProviderInterface.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\Service\PaymentRestrictionValidation\PaymentRestrictionValidationInterface; +if (!defined('_PS_VERSION_')) { + exit; +} + interface PaymentRestrictionProviderInterface { /** diff --git a/src/Provider/PaymentTypeProvider.php b/src/Provider/PaymentTypeProvider.php index 76ea79a48..5ca0331f2 100755 --- a/src/Provider/PaymentTypeProvider.php +++ b/src/Provider/PaymentTypeProvider.php @@ -27,6 +27,10 @@ use Invertus\SaferPay\Enum\PaymentType; use Invertus\SaferPay\Repository\SaferPayFieldRepository; +if (!defined('_PS_VERSION_')) { + exit; +} + class PaymentTypeProvider { /** @var SaferPayFieldRepository */ diff --git a/src/Repository/AbstractRepository.php b/src/Repository/AbstractRepository.php index 1fc73de19..ac34f97d0 100755 --- a/src/Repository/AbstractRepository.php +++ b/src/Repository/AbstractRepository.php @@ -27,6 +27,10 @@ use PrestaShopCollection; use PrestaShopException; +if (!defined('_PS_VERSION_')) { + exit; +} + class AbstractRepository implements ReadOnlyRepositoryInterface { /** diff --git a/src/Repository/OrderRepository.php b/src/Repository/OrderRepository.php index 5dc44f5c7..1681863cf 100755 --- a/src/Repository/OrderRepository.php +++ b/src/Repository/OrderRepository.php @@ -25,6 +25,10 @@ use Order; +if (!defined('_PS_VERSION_')) { + exit; +} + final class OrderRepository extends AbstractRepository implements OrderRepositoryInterface { public function __construct() diff --git a/src/Repository/OrderRepositoryInterface.php b/src/Repository/OrderRepositoryInterface.php index 7f29ceda0..8a384b5c3 100755 --- a/src/Repository/OrderRepositoryInterface.php +++ b/src/Repository/OrderRepositoryInterface.php @@ -25,6 +25,10 @@ use Order; +if (!defined('_PS_VERSION_')) { + exit; +} + interface OrderRepositoryInterface extends ReadOnlyRepositoryInterface { /** diff --git a/src/Repository/ReadOnlyRepositoryInterface.php b/src/Repository/ReadOnlyRepositoryInterface.php index 2197c734a..7ffa116fc 100755 --- a/src/Repository/ReadOnlyRepositoryInterface.php +++ b/src/Repository/ReadOnlyRepositoryInterface.php @@ -26,6 +26,10 @@ use ObjectModel; use PrestaShopCollection; +if (!defined('_PS_VERSION_')) { + exit; +} + interface ReadOnlyRepositoryInterface { /** diff --git a/src/Repository/SaferPayCardAliasRepository.php b/src/Repository/SaferPayCardAliasRepository.php index 46abd9305..5cf243620 100755 --- a/src/Repository/SaferPayCardAliasRepository.php +++ b/src/Repository/SaferPayCardAliasRepository.php @@ -26,6 +26,10 @@ use Db; use DbQuery; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayCardAliasRepository { public function getSavedValidCardsByUserIdAndPaymentMethod($userId, $paymentMethod, $currentDate) diff --git a/src/Repository/SaferPayFieldRepository.php b/src/Repository/SaferPayFieldRepository.php index c8cd040ac..919cc0932 100755 --- a/src/Repository/SaferPayFieldRepository.php +++ b/src/Repository/SaferPayFieldRepository.php @@ -26,6 +26,10 @@ use Db; use DbQuery; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayFieldRepository { public function isActiveByName($paymentName) diff --git a/src/Repository/SaferPayLogoRepository.php b/src/Repository/SaferPayLogoRepository.php index 713e3246e..ea7b327b7 100755 --- a/src/Repository/SaferPayLogoRepository.php +++ b/src/Repository/SaferPayLogoRepository.php @@ -26,6 +26,10 @@ use Db; use DbQuery; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayLogoRepository { public function isActiveByName($logo) diff --git a/src/Repository/SaferPayOrderRepository.php b/src/Repository/SaferPayOrderRepository.php index 575e5c986..0d511c14f 100755 --- a/src/Repository/SaferPayOrderRepository.php +++ b/src/Repository/SaferPayOrderRepository.php @@ -26,6 +26,10 @@ use Db; use DbQuery; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOrderRepository { public function getIdByOrderId($orderId) diff --git a/src/Repository/SaferPayPaymentRepository.php b/src/Repository/SaferPayPaymentRepository.php index 5a568ccbc..0221e46d6 100755 --- a/src/Repository/SaferPayPaymentRepository.php +++ b/src/Repository/SaferPayPaymentRepository.php @@ -26,6 +26,10 @@ use Db; use DbQuery; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayPaymentRepository { public function isActiveByName($paymentName) diff --git a/src/Repository/SaferPayRestrictionRepository.php b/src/Repository/SaferPayRestrictionRepository.php index ac3d27f57..143232d5a 100755 --- a/src/Repository/SaferPayRestrictionRepository.php +++ b/src/Repository/SaferPayRestrictionRepository.php @@ -27,6 +27,10 @@ use DbQuery; use Invertus\SaferPay\Service\SaferPayRestrictionCreator; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayRestrictionRepository { public function getRestrictionIdsByName($paymentName, $restrictionType) diff --git a/src/Repository/SaferPaySavedCreditCardRepository.php b/src/Repository/SaferPaySavedCreditCardRepository.php index 5fcd0a558..1f69a49b7 100755 --- a/src/Repository/SaferPaySavedCreditCardRepository.php +++ b/src/Repository/SaferPaySavedCreditCardRepository.php @@ -26,6 +26,10 @@ use Db; use DbQuery; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPaySavedCreditCardRepository { public function areAnyCreditCardsSaved() diff --git a/src/Service/CartDuplicationService.php b/src/Service/CartDuplicationService.php index a1f460a14..de5af3db1 100755 --- a/src/Service/CartDuplicationService.php +++ b/src/Service/CartDuplicationService.php @@ -29,6 +29,10 @@ use Db; use Order; +if (!defined('_PS_VERSION_')) { + exit; +} + class CartDuplicationService { public function restoreCart($cartId) diff --git a/src/Service/LegacyTranslator.php b/src/Service/LegacyTranslator.php index c5f5873a7..d6b31d2be 100755 --- a/src/Service/LegacyTranslator.php +++ b/src/Service/LegacyTranslator.php @@ -27,6 +27,10 @@ use Invertus\SaferPay\Factory\ModuleFactory; use SaferPayOfficial; +if (!defined('_PS_VERSION_')) { + exit; +} + class LegacyTranslator implements TranslatorInterface { const FILE_NAME = 'LegacyTranslator'; diff --git a/src/Service/PaymentRestrictionValidation.php b/src/Service/PaymentRestrictionValidation.php index ff225fcd7..577c9e1f2 100755 --- a/src/Service/PaymentRestrictionValidation.php +++ b/src/Service/PaymentRestrictionValidation.php @@ -26,6 +26,10 @@ use Invertus\SaferPay\Provider\PaymentRestrictionProvider; use Invertus\SaferPay\Service\PaymentRestrictionValidation\PaymentRestrictionValidationInterface; +if (!defined('_PS_VERSION_')) { + exit; +} + class PaymentRestrictionValidation { /** diff --git a/src/Service/PaymentRestrictionValidation/ApplePayPaymentRestrictionValidation.php b/src/Service/PaymentRestrictionValidation/ApplePayPaymentRestrictionValidation.php index 345e6d69e..035016bac 100755 --- a/src/Service/PaymentRestrictionValidation/ApplePayPaymentRestrictionValidation.php +++ b/src/Service/PaymentRestrictionValidation/ApplePayPaymentRestrictionValidation.php @@ -26,6 +26,10 @@ use Invertus\SaferPay\Adapter\LegacyContext; use Invertus\SaferPay\Config\SaferPayConfig; +if (!defined('_PS_VERSION_')) { + exit; +} + class ApplePayPaymentRestrictionValidation implements PaymentRestrictionValidationInterface { /** diff --git a/src/Service/PaymentRestrictionValidation/BasePaymentRestrictionValidation.php b/src/Service/PaymentRestrictionValidation/BasePaymentRestrictionValidation.php index 86a120b89..bd3261828 100755 --- a/src/Service/PaymentRestrictionValidation/BasePaymentRestrictionValidation.php +++ b/src/Service/PaymentRestrictionValidation/BasePaymentRestrictionValidation.php @@ -30,6 +30,10 @@ use Invertus\SaferPay\Service\SaferPayObtainPaymentMethods; use Invertus\SaferPay\Service\SaferPayRestrictionCreator; +if (!defined('_PS_VERSION_')) { + exit; +} + class BasePaymentRestrictionValidation implements PaymentRestrictionValidationInterface { /** diff --git a/src/Service/PaymentRestrictionValidation/KlarnaPaymentRestrictionValidation.php b/src/Service/PaymentRestrictionValidation/KlarnaPaymentRestrictionValidation.php index a39be7957..89e2be015 100755 --- a/src/Service/PaymentRestrictionValidation/KlarnaPaymentRestrictionValidation.php +++ b/src/Service/PaymentRestrictionValidation/KlarnaPaymentRestrictionValidation.php @@ -26,6 +26,10 @@ use Invertus\SaferPay\Adapter\LegacyContext; use Invertus\SaferPay\Config\SaferPayConfig; +if (!defined('_PS_VERSION_')) { + exit; +} + class KlarnaPaymentRestrictionValidation implements PaymentRestrictionValidationInterface { private $context; diff --git a/src/Service/PaymentRestrictionValidation/PaymentRestrictionValidationInterface.php b/src/Service/PaymentRestrictionValidation/PaymentRestrictionValidationInterface.php index 476b93017..313439f95 100755 --- a/src/Service/PaymentRestrictionValidation/PaymentRestrictionValidationInterface.php +++ b/src/Service/PaymentRestrictionValidation/PaymentRestrictionValidationInterface.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\Service\PaymentRestrictionValidation; +if (!defined('_PS_VERSION_')) { + exit; +} + interface PaymentRestrictionValidationInterface { /** diff --git a/src/Service/PaymentRestrictionValidation/WlcryptopaymentsPaymentRestrictionValidation.php b/src/Service/PaymentRestrictionValidation/WlcryptopaymentsPaymentRestrictionValidation.php index 0c4b9ca43..44878560d 100755 --- a/src/Service/PaymentRestrictionValidation/WlcryptopaymentsPaymentRestrictionValidation.php +++ b/src/Service/PaymentRestrictionValidation/WlcryptopaymentsPaymentRestrictionValidation.php @@ -27,6 +27,10 @@ use Invertus\SaferPay\Config\SaferPayConfig; use Tools; +if (!defined('_PS_VERSION_')) { + exit; +} + class WlcryptopaymentsPaymentRestrictionValidation implements PaymentRestrictionValidationInterface { private $context; diff --git a/src/Service/Request/AssertRefundRequestObjectCreator.php b/src/Service/Request/AssertRefundRequestObjectCreator.php index 8704953b6..7da844398 100755 --- a/src/Service/Request/AssertRefundRequestObjectCreator.php +++ b/src/Service/Request/AssertRefundRequestObjectCreator.php @@ -27,6 +27,10 @@ use Invertus\SaferPay\Repository\SaferPayOrderRepository; use SaferPayOrder; +if (!defined('_PS_VERSION_')) { + exit; +} + class AssertRefundRequestObjectCreator { /** diff --git a/src/Service/Request/AssertRequestObjectCreator.php b/src/Service/Request/AssertRequestObjectCreator.php index 10e847349..ea80c70be 100755 --- a/src/Service/Request/AssertRequestObjectCreator.php +++ b/src/Service/Request/AssertRequestObjectCreator.php @@ -28,6 +28,10 @@ use Invertus\SaferPay\Repository\SaferPayOrderRepository; use SaferPayOrder; +if (!defined('_PS_VERSION_')) { + exit; +} + class AssertRequestObjectCreator { /** diff --git a/src/Service/Request/AuthorizationRequestObjectCreator.php b/src/Service/Request/AuthorizationRequestObjectCreator.php index 5f4bcaf9a..34d015acc 100755 --- a/src/Service/Request/AuthorizationRequestObjectCreator.php +++ b/src/Service/Request/AuthorizationRequestObjectCreator.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\DTO\Request\Authorization\AuthorizationRequest; +if (!defined('_PS_VERSION_')) { + exit; +} + class AuthorizationRequestObjectCreator { /** diff --git a/src/Service/Request/CancelRequestObjectCreator.php b/src/Service/Request/CancelRequestObjectCreator.php index acb0d30cf..8532d3e69 100755 --- a/src/Service/Request/CancelRequestObjectCreator.php +++ b/src/Service/Request/CancelRequestObjectCreator.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\DTO\Request\Cancel\CancelRequest; +if (!defined('_PS_VERSION_')) { + exit; +} + class CancelRequestObjectCreator { /** diff --git a/src/Service/Request/CaptureRequestObjectCreator.php b/src/Service/Request/CaptureRequestObjectCreator.php index 8b78844f3..e5727fe8a 100755 --- a/src/Service/Request/CaptureRequestObjectCreator.php +++ b/src/Service/Request/CaptureRequestObjectCreator.php @@ -27,6 +27,10 @@ use Invertus\SaferPay\DTO\Request\Capture\CaptureRequest; use Order; +if (!defined('_PS_VERSION_')) { + exit; +} + class CaptureRequestObjectCreator { /** diff --git a/src/Service/Request/InitializeRequestObjectCreator.php b/src/Service/Request/InitializeRequestObjectCreator.php index 77452fe9f..f604b6449 100755 --- a/src/Service/Request/InitializeRequestObjectCreator.php +++ b/src/Service/Request/InitializeRequestObjectCreator.php @@ -31,6 +31,10 @@ use Invertus\SaferPay\DTO\Request\Initialize\InitializeRequest; use Invertus\SaferPay\DTO\Request\Payer; +if (!defined('_PS_VERSION_')) { + exit; +} + class InitializeRequestObjectCreator { /** diff --git a/src/Service/Request/ObtainPaymentMethodsObjectCreator.php b/src/Service/Request/ObtainPaymentMethodsObjectCreator.php index 36f33e3fd..12db22b6e 100755 --- a/src/Service/Request/ObtainPaymentMethodsObjectCreator.php +++ b/src/Service/Request/ObtainPaymentMethodsObjectCreator.php @@ -28,6 +28,10 @@ use Invertus\SaferPay\DTO\Request\ObtainPaymentMethods\ObtainPaymentMethodsRequest; use Invertus\SaferPay\DTO\Request\RequestHeader; +if (!defined('_PS_VERSION_')) { + exit; +} + class ObtainPaymentMethodsObjectCreator { private $requestObjectCreator; diff --git a/src/Service/Request/RefundRequestObjectCreator.php b/src/Service/Request/RefundRequestObjectCreator.php index 648d8bce6..04b5a4184 100755 --- a/src/Service/Request/RefundRequestObjectCreator.php +++ b/src/Service/Request/RefundRequestObjectCreator.php @@ -26,6 +26,10 @@ use Cart; use Invertus\SaferPay\DTO\Request\Refund\RefundRequest; +if (!defined('_PS_VERSION_')) { + exit; +} + class RefundRequestObjectCreator { /** diff --git a/src/Service/Request/RequestObjectCreator.php b/src/Service/Request/RequestObjectCreator.php index 9c22a67be..72cb3d706 100755 --- a/src/Service/Request/RequestObjectCreator.php +++ b/src/Service/Request/RequestObjectCreator.php @@ -49,6 +49,10 @@ use SaferPayOfficial; use Tax; +if (!defined('_PS_VERSION_')) { + exit; +} + class RequestObjectCreator { /** diff --git a/src/Service/Response/AssertRefundResponseObjectCreator.php b/src/Service/Response/AssertRefundResponseObjectCreator.php index a39b04c25..22a10701f 100755 --- a/src/Service/Response/AssertRefundResponseObjectCreator.php +++ b/src/Service/Response/AssertRefundResponseObjectCreator.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\DTO\Response\AssertRefund\AssertRefundBody; +if (!defined('_PS_VERSION_')) { + exit; +} + class AssertRefundResponseObjectCreator extends ResponseObjectCreator { /** diff --git a/src/Service/Response/AssertResponseObjectCreator.php b/src/Service/Response/AssertResponseObjectCreator.php index 23e86ca54..f4ec1e21d 100755 --- a/src/Service/Response/AssertResponseObjectCreator.php +++ b/src/Service/Response/AssertResponseObjectCreator.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\DTO\Response\Assert\AssertBody; +if (!defined('_PS_VERSION_')) { + exit; +} + class AssertResponseObjectCreator extends ResponseObjectCreator { /** diff --git a/src/Service/Response/AuthorizationResponseObjectCreator.php b/src/Service/Response/AuthorizationResponseObjectCreator.php index e71e0fc12..91e889c94 100755 --- a/src/Service/Response/AuthorizationResponseObjectCreator.php +++ b/src/Service/Response/AuthorizationResponseObjectCreator.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\DTO\Response\Authorization\AuthorizationBody; +if (!defined('_PS_VERSION_')) { + exit; +} + class AuthorizationResponseObjectCreator extends ResponseObjectCreator { public function createAuthorizationObject($responseBody) diff --git a/src/Service/Response/InitializeResponseObjectCreator.php b/src/Service/Response/InitializeResponseObjectCreator.php index 261082633..2622865fa 100755 --- a/src/Service/Response/InitializeResponseObjectCreator.php +++ b/src/Service/Response/InitializeResponseObjectCreator.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\DTO\Response\Initialize\InitializeBody; +if (!defined('_PS_VERSION_')) { + exit; +} + class InitializeResponseObjectCreator extends ResponseObjectCreator { public function createInitializeObject($responseBody) diff --git a/src/Service/Response/ResponseObjectCreator.php b/src/Service/Response/ResponseObjectCreator.php index 195dde602..3b935dbd2 100755 --- a/src/Service/Response/ResponseObjectCreator.php +++ b/src/Service/Response/ResponseObjectCreator.php @@ -36,6 +36,10 @@ use Invertus\SaferPay\DTO\Response\ThreeDs; use Invertus\SaferPay\DTO\Response\Transaction; +if (!defined('_PS_VERSION_')) { + exit; +} + class ResponseObjectCreator { protected function createResponseHeader($responseHeader) diff --git a/src/Service/SaferPayCartService.php b/src/Service/SaferPayCartService.php index a43a7ea31..9ab61ee0a 100755 --- a/src/Service/SaferPayCartService.php +++ b/src/Service/SaferPayCartService.php @@ -28,6 +28,10 @@ use Invertus\SaferPay\Factory\ModuleFactory; use SaferPayOfficial; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayCartService { /** diff --git a/src/Service/SaferPayErrorDisplayService.php b/src/Service/SaferPayErrorDisplayService.php index a6950520f..abb08a852 100755 --- a/src/Service/SaferPayErrorDisplayService.php +++ b/src/Service/SaferPayErrorDisplayService.php @@ -26,6 +26,10 @@ use Context; use Invertus\SaferPay\Config\SaferPayConfig; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayErrorDisplayService { public function showCookieError($id) diff --git a/src/Service/SaferPayExceptionService.php b/src/Service/SaferPayExceptionService.php index f10f70031..89a5ffb52 100755 --- a/src/Service/SaferPayExceptionService.php +++ b/src/Service/SaferPayExceptionService.php @@ -28,6 +28,10 @@ use Invertus\SaferPay\Factory\ModuleFactory; use SaferPayOfficial; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayExceptionService { const SHORT_CLASS_NAME = 'SaferPayExceptionService'; diff --git a/src/Service/SaferPayFieldCreator.php b/src/Service/SaferPayFieldCreator.php index de072270c..8e7654f95 100755 --- a/src/Service/SaferPayFieldCreator.php +++ b/src/Service/SaferPayFieldCreator.php @@ -26,6 +26,10 @@ use Invertus\SaferPay\Repository\SaferPayFieldRepository; use SaferPayField; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayFieldCreator { /** diff --git a/src/Service/SaferPayInitialize.php b/src/Service/SaferPayInitialize.php index 184ad0340..8d1f92b82 100755 --- a/src/Service/SaferPayInitialize.php +++ b/src/Service/SaferPayInitialize.php @@ -34,6 +34,10 @@ use Order; use SaferPayOfficial; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayInitialize { /** diff --git a/src/Service/SaferPayLogoCreator.php b/src/Service/SaferPayLogoCreator.php index a12efbbaa..269fd7414 100755 --- a/src/Service/SaferPayLogoCreator.php +++ b/src/Service/SaferPayLogoCreator.php @@ -26,6 +26,10 @@ use Invertus\SaferPay\Repository\SaferPayLogoRepository; use SaferPayLogo; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayLogoCreator { /** diff --git a/src/Service/SaferPayMailService.php b/src/Service/SaferPayMailService.php index 2c892661c..0c00f2dc1 100755 --- a/src/Service/SaferPayMailService.php +++ b/src/Service/SaferPayMailService.php @@ -35,6 +35,10 @@ use State; use Tools; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayMailService { const FILE_NAME = 'SaferPayMailService'; diff --git a/src/Service/SaferPayObtainPaymentMethods.php b/src/Service/SaferPayObtainPaymentMethods.php index f5802a076..21bf77e4f 100755 --- a/src/Service/SaferPayObtainPaymentMethods.php +++ b/src/Service/SaferPayObtainPaymentMethods.php @@ -28,6 +28,10 @@ use Invertus\SaferPay\Exception\Api\SaferPayApiException; use Invertus\SaferPay\Service\Request\ObtainPaymentMethodsObjectCreator; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayObtainPaymentMethods { private $obtainPaymentMethodsService; diff --git a/src/Service/SaferPayOrderStatusService.php b/src/Service/SaferPayOrderStatusService.php index c4077bb1d..4790ebd6d 100755 --- a/src/Service/SaferPayOrderStatusService.php +++ b/src/Service/SaferPayOrderStatusService.php @@ -44,6 +44,10 @@ use SaferPayOfficial; use SaferPayOrder; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOrderStatusService { /** diff --git a/src/Service/SaferPayPaymentCreator.php b/src/Service/SaferPayPaymentCreator.php index 6079dd3ed..7fe9aae29 100755 --- a/src/Service/SaferPayPaymentCreator.php +++ b/src/Service/SaferPayPaymentCreator.php @@ -26,9 +26,12 @@ use Invertus\SaferPay\Repository\SaferPayPaymentRepository; use SaferPayPayment; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayPaymentCreator { - /** * @var SaferPayPaymentRepository */ diff --git a/src/Service/SaferPayPaymentNotation.php b/src/Service/SaferPayPaymentNotation.php index cc6f3063d..5e80e551e 100755 --- a/src/Service/SaferPayPaymentNotation.php +++ b/src/Service/SaferPayPaymentNotation.php @@ -23,9 +23,12 @@ namespace Invertus\SaferPay\Service; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayPaymentNotation { - const PAYMENTS = [ 'AMEX' => 'AmericanExpress', 'DINERS' => 'DinersClub', diff --git a/src/Service/SaferPayRefreshPaymentsService.php b/src/Service/SaferPayRefreshPaymentsService.php index e655f3191..9ee994e07 100755 --- a/src/Service/SaferPayRefreshPaymentsService.php +++ b/src/Service/SaferPayRefreshPaymentsService.php @@ -30,6 +30,10 @@ use Invertus\SaferPay\Repository\SaferPayPaymentRepository; use Invertus\SaferPay\Repository\SaferPayRestrictionRepository; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayRefreshPaymentsService { const ALL_COUNTRIES_ENABLED = "1"; diff --git a/src/Service/SaferPayRestrictionCreator.php b/src/Service/SaferPayRestrictionCreator.php index bfe437bad..c7944c2cf 100755 --- a/src/Service/SaferPayRestrictionCreator.php +++ b/src/Service/SaferPayRestrictionCreator.php @@ -29,6 +29,10 @@ use SaferPayCountry; use SaferPayCurrency; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayRestrictionCreator { const RESTRICTION_ALL = 0; diff --git a/src/Service/TransactionFlow/SaferPayTransactionAssertion.php b/src/Service/TransactionFlow/SaferPayTransactionAssertion.php index 9fe8804cf..eab505795 100755 --- a/src/Service/TransactionFlow/SaferPayTransactionAssertion.php +++ b/src/Service/TransactionFlow/SaferPayTransactionAssertion.php @@ -31,6 +31,10 @@ use Order; use SaferPayOrder; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayTransactionAssertion { /** diff --git a/src/Service/TransactionFlow/SaferPayTransactionAuthorization.php b/src/Service/TransactionFlow/SaferPayTransactionAuthorization.php index 2fa0fe932..401792909 100755 --- a/src/Service/TransactionFlow/SaferPayTransactionAuthorization.php +++ b/src/Service/TransactionFlow/SaferPayTransactionAuthorization.php @@ -32,6 +32,10 @@ use Order; use SaferPayOrder; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayTransactionAuthorization { /** diff --git a/src/Service/TransactionFlow/SaferPayTransactionRefundAssertion.php b/src/Service/TransactionFlow/SaferPayTransactionRefundAssertion.php index 98aadd538..ded49b97b 100755 --- a/src/Service/TransactionFlow/SaferPayTransactionRefundAssertion.php +++ b/src/Service/TransactionFlow/SaferPayTransactionRefundAssertion.php @@ -30,6 +30,10 @@ use Invertus\SaferPay\Service\Response\AssertRefundResponseObjectCreator; use SaferPayOrder; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayTransactionRefundAssertion { /** diff --git a/src/Service/TranslatorInterface.php b/src/Service/TranslatorInterface.php index 2bb37f668..4d8942334 100755 --- a/src/Service/TranslatorInterface.php +++ b/src/Service/TranslatorInterface.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\Service; +if (!defined('_PS_VERSION_')) { + exit; +} + /** * TranslatorInterface. * diff --git a/src/ServiceProvider/BaseServiceProvider.php b/src/ServiceProvider/BaseServiceProvider.php index 28a93314f..457266a10 100755 --- a/src/ServiceProvider/BaseServiceProvider.php +++ b/src/ServiceProvider/BaseServiceProvider.php @@ -29,6 +29,10 @@ use Invertus\SaferPay\Repository\OrderRepositoryInterface; use League\Container\Container; +if (!defined('_PS_VERSION_')) { + exit; +} + /** * Load base services here which are usually required */ diff --git a/src/ServiceProvider/LeagueServiceContainerProvider.php b/src/ServiceProvider/LeagueServiceContainerProvider.php index 085c9029b..502f85ee4 100755 --- a/src/ServiceProvider/LeagueServiceContainerProvider.php +++ b/src/ServiceProvider/LeagueServiceContainerProvider.php @@ -26,6 +26,10 @@ use League\Container\Container; use League\Container\ReflectionContainer; +if (!defined('_PS_VERSION_')) { + exit; +} + class LeagueServiceContainerProvider implements ServiceContainerProviderInterface { private $extendedServices = []; diff --git a/src/ServiceProvider/ServiceContainerProviderInterface.php b/src/ServiceProvider/ServiceContainerProviderInterface.php index 807f6cbd3..26e11698d 100755 --- a/src/ServiceProvider/ServiceContainerProviderInterface.php +++ b/src/ServiceProvider/ServiceContainerProviderInterface.php @@ -13,6 +13,10 @@ namespace Invertus\SaferPay\ServiceProvider; +if (!defined('_PS_VERSION_')) { + exit; +} + interface ServiceContainerProviderInterface { /** diff --git a/src/Utility/PriceUtility.php b/src/Utility/PriceUtility.php index 64f6a90a2..216c1a938 100755 --- a/src/Utility/PriceUtility.php +++ b/src/Utility/PriceUtility.php @@ -23,6 +23,10 @@ namespace Invertus\SaferPay\Utility; +if (!defined('_PS_VERSION_')) { + exit; +} + class PriceUtility { /** From ca4b98106cdfd40a81aecc99b40d7548cac272da Mon Sep 17 00:00:00 2001 From: Gytautas Date: Fri, 27 Oct 2023 11:58:51 +0300 Subject: [PATCH 3/9] increased version --- changelog.md | 4 ++++ saferpayofficial.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 50c9c1563..2f93b3c2a 100755 --- a/changelog.md +++ b/changelog.md @@ -140,3 +140,7 @@ ## [1.1.6] - * - BO : Added additional check for confirmation email regarding payment status and customer behavior + +## [1.1.7] - * +- BO : Added PrestaShop module security validations +- FO : Added PrestaShop module security validations diff --git a/saferpayofficial.php b/saferpayofficial.php index f0c94ba1f..4ae427ef8 100755 --- a/saferpayofficial.php +++ b/saferpayofficial.php @@ -41,7 +41,7 @@ public function __construct($name = null) { $this->name = 'saferpayofficial'; $this->author = 'Invertus'; - $this->version = '1.1.6'; + $this->version = '1.1.7'; $this->module_key = '3d3506c3e184a1fe63b936b82bda1bdf'; $this->displayName = 'SaferpayOfficial'; $this->description = 'Saferpay Payment module'; From ada639d9eef09fe2dbcf4be08b51d56a9c8fdb1e Mon Sep 17 00:00:00 2001 From: Gytautas Date: Fri, 27 Oct 2023 16:50:21 +0300 Subject: [PATCH 4/9] fix: added rest headers --- cypress/fixtures/index.php | 22 +++++++++++++++++++ cypress/index.php | 22 +++++++++++++++++++ cypress/integration/index.php | 22 +++++++++++++++++++ cypress/plugins/index.php | 22 +++++++++++++++++++ cypress/support/index.php | 22 +++++++++++++++++++ saferpayofficial.php | 1 - src/Api/Enum/index.php | 22 +++++++++++++++++++ src/Core/Order/Verification/index.php | 22 +++++++++++++++++++ src/Core/Order/index.php | 22 +++++++++++++++++++ src/Core/index.php | 22 +++++++++++++++++++ .../Request/ObtainPaymentMethods/index.php | 22 +++++++++++++++++++ src/Factory/index.php | 22 +++++++++++++++++++ src/Presentation/Loader/index.php | 22 +++++++++++++++++++ src/Presentation/index.php | 22 +++++++++++++++++++ src/ServiceProvider/index.php | 21 ++++++++++++++++++ translations/index.php | 22 +++++++++++++++++++ 16 files changed, 329 insertions(+), 1 deletion(-) diff --git a/cypress/fixtures/index.php b/cypress/fixtures/index.php index 15aba8204..d5a8315fc 100644 --- a/cypress/fixtures/index.php +++ b/cypress/fixtures/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/cypress/index.php b/cypress/index.php index 15aba8204..d5a8315fc 100644 --- a/cypress/index.php +++ b/cypress/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/cypress/integration/index.php b/cypress/integration/index.php index 15aba8204..d5a8315fc 100644 --- a/cypress/integration/index.php +++ b/cypress/integration/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/cypress/plugins/index.php b/cypress/plugins/index.php index 15aba8204..d5a8315fc 100644 --- a/cypress/plugins/index.php +++ b/cypress/plugins/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/cypress/support/index.php b/cypress/support/index.php index 15aba8204..d5a8315fc 100644 --- a/cypress/support/index.php +++ b/cypress/support/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/saferpayofficial.php b/saferpayofficial.php index 4ae427ef8..65fedf0a3 100755 --- a/saferpayofficial.php +++ b/saferpayofficial.php @@ -1,5 +1,4 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/src/Core/Order/Verification/index.php b/src/Core/Order/Verification/index.php index 15aba8204..d5a8315fc 100644 --- a/src/Core/Order/Verification/index.php +++ b/src/Core/Order/Verification/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/src/Core/Order/index.php b/src/Core/Order/index.php index 15aba8204..d5a8315fc 100644 --- a/src/Core/Order/index.php +++ b/src/Core/Order/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/src/Core/index.php b/src/Core/index.php index 15aba8204..d5a8315fc 100644 --- a/src/Core/index.php +++ b/src/Core/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/src/DTO/Request/ObtainPaymentMethods/index.php b/src/DTO/Request/ObtainPaymentMethods/index.php index 15aba8204..d5a8315fc 100644 --- a/src/DTO/Request/ObtainPaymentMethods/index.php +++ b/src/DTO/Request/ObtainPaymentMethods/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/src/Factory/index.php b/src/Factory/index.php index 15aba8204..d5a8315fc 100644 --- a/src/Factory/index.php +++ b/src/Factory/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/src/Presentation/Loader/index.php b/src/Presentation/Loader/index.php index 15aba8204..d5a8315fc 100644 --- a/src/Presentation/Loader/index.php +++ b/src/Presentation/Loader/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/src/Presentation/index.php b/src/Presentation/index.php index 15aba8204..d5a8315fc 100644 --- a/src/Presentation/index.php +++ b/src/Presentation/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/src/ServiceProvider/index.php b/src/ServiceProvider/index.php index 15aba8204..8b2dfeb82 100644 --- a/src/ServiceProvider/index.php +++ b/src/ServiceProvider/index.php @@ -1,4 +1,25 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/translations/index.php b/translations/index.php index 15aba8204..d5a8315fc 100644 --- a/translations/index.php +++ b/translations/index.php @@ -1,4 +1,26 @@ + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); From 90179db80ce4f36750d32e996a96461811abbf6a Mon Sep 17 00:00:00 2001 From: Gytautas Date: Fri, 27 Oct 2023 17:07:31 +0300 Subject: [PATCH 5/9] finalized fixing security issues --- cypress/plugins/index.js | 22 ++++++++++++++++++++++ src/Service/SaferPayMailService.php | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js index 59b2bab6e..6dac1742e 100755 --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -1,3 +1,25 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/src/Service/SaferPayMailService.php b/src/Service/SaferPayMailService.php index 0c00f2dc1..b5a04d81a 100755 --- a/src/Service/SaferPayMailService.php +++ b/src/Service/SaferPayMailService.php @@ -293,7 +293,7 @@ private function getCartRuleList(Order $order, $orderStateId) // Set a new voucher code $voucher->code = empty($voucher->code) ? substr(md5($order->id . '-' . $order->id_customer . '-' . $cart_rule['obj']->id), 0, 16) : $voucher->code . '-2'; if (preg_match('/\-([0-9]{1,2})\-([0-9]{1,2})$/', $voucher->code, $matches) && $matches[1] == $matches[2]) { - $voucher->code = preg_replace('/' . $matches[0] . '$/', '-' . (intval($matches[1]) + 1), $voucher->code); + $voucher->code = preg_replace('/' . $matches[0] . '$/', '-' . ((int) $matches[1]) + 1, $voucher->code); } // Set the new voucher value From d69637389c2e406af4701d433d161704450e96c0 Mon Sep 17 00:00:00 2001 From: Gytautas Date: Fri, 27 Oct 2023 17:08:17 +0300 Subject: [PATCH 6/9] fixed function --- src/Service/SaferPayMailService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/SaferPayMailService.php b/src/Service/SaferPayMailService.php index b5a04d81a..94e686778 100755 --- a/src/Service/SaferPayMailService.php +++ b/src/Service/SaferPayMailService.php @@ -293,7 +293,7 @@ private function getCartRuleList(Order $order, $orderStateId) // Set a new voucher code $voucher->code = empty($voucher->code) ? substr(md5($order->id . '-' . $order->id_customer . '-' . $cart_rule['obj']->id), 0, 16) : $voucher->code . '-2'; if (preg_match('/\-([0-9]{1,2})\-([0-9]{1,2})$/', $voucher->code, $matches) && $matches[1] == $matches[2]) { - $voucher->code = preg_replace('/' . $matches[0] . '$/', '-' . ((int) $matches[1]) + 1, $voucher->code); + $voucher->code = preg_replace('/' . $matches[0] . '$/', '-' . ((int) ($matches[1]) + 1), $voucher->code); } // Set the new voucher value From c3abf82bafebaf7b2b2d53ea8c025fd6126c14a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20=C5=A0mulk=C5=A1tys?= Date: Thu, 23 Nov 2023 09:49:24 +0200 Subject: [PATCH 7/9] added version checks --- controllers/front/ajax.php | 4 ++++ controllers/front/creditCards.php | 4 ++++ controllers/front/creditCards16.php | 4 ++++ controllers/front/fail.php | 4 ++++ controllers/front/failIFrame.php | 4 ++++ controllers/front/failValidation.php | 4 ++++ controllers/front/hostedIframe.php | 4 ++++ controllers/front/iframe.php | 4 ++++ controllers/front/notify.php | 4 ++++ controllers/front/pendingNotify.php | 4 ++++ controllers/front/return.php | 4 ++++ controllers/front/success.php | 4 ++++ controllers/front/successHosted.php | 4 ++++ controllers/front/successIFrame.php | 4 ++++ controllers/front/validation.php | 4 ++++ saferpay.config.php | 4 ++++ src/Api/Request/AssertRefundService.php | 4 ++++ src/Api/Request/AssertService.php | 4 ++++ src/Api/Request/AuthorizationService.php | 4 ++++ src/Api/Request/CancelService.php | 4 ++++ src/Api/Request/CaptureService.php | 4 ++++ src/Api/Request/InitializeService.php | 4 ++++ .../Request/ObtainPaymentMethodsService.php | 5 +++++ src/Api/Request/RefundService.php | 4 ++++ views/css/admin/payment_method.css | 22 +++++++++++++++++++ views/css/admin/saferpay_fields.css | 22 +++++++++++++++++++ views/css/front/loading.css | 22 +++++++++++++++++++ 27 files changed, 163 insertions(+) diff --git a/controllers/front/ajax.php b/controllers/front/ajax.php index 808799d98..fc57d0494 100755 --- a/controllers/front/ajax.php +++ b/controllers/front/ajax.php @@ -26,6 +26,10 @@ use Invertus\SaferPay\Repository\SaferPayCardAliasRepository; use Invertus\SaferPay\Service\SaferPayInitialize; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialAjaxModuleFrontController extends ModuleFrontController { public function postProcess() diff --git a/controllers/front/creditCards.php b/controllers/front/creditCards.php index 423dae94d..3d1a5d58e 100755 --- a/controllers/front/creditCards.php +++ b/controllers/front/creditCards.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\Controller\AbstractSaferPayController; use Invertus\SaferPay\Repository\SaferPayCardAliasRepository; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialCreditCardsModuleFrontController extends AbstractSaferPayController { const FILENAME = 'creditCards'; diff --git a/controllers/front/creditCards16.php b/controllers/front/creditCards16.php index 281b81c46..5463e4706 100755 --- a/controllers/front/creditCards16.php +++ b/controllers/front/creditCards16.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\Controller\AbstractSaferPayController; use Invertus\SaferPay\Repository\SaferPayCardAliasRepository; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialCreditCards16ModuleFrontController extends AbstractSaferPayController { const FILENAME = 'creditCards16'; diff --git a/controllers/front/fail.php b/controllers/front/fail.php index c354b0563..b771c012d 100755 --- a/controllers/front/fail.php +++ b/controllers/front/fail.php @@ -26,6 +26,10 @@ use Invertus\SaferPay\Service\CartDuplicationService; use PrestaShop\PrestaShop\Adapter\Order\OrderPresenter; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialFailModuleFrontController extends AbstractSaferPayController { const FILENAME = 'fail'; diff --git a/controllers/front/failIFrame.php b/controllers/front/failIFrame.php index 5d1a0223f..7752121ac 100755 --- a/controllers/front/failIFrame.php +++ b/controllers/front/failIFrame.php @@ -24,6 +24,10 @@ use Invertus\SaferPay\Config\SaferPayConfig; use Invertus\SaferPay\Controller\AbstractSaferPayController; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialFailIFrameModuleFrontController extends AbstractSaferPayController { const FILENAME = 'failIFrame'; diff --git a/controllers/front/failValidation.php b/controllers/front/failValidation.php index 581402138..991368c78 100755 --- a/controllers/front/failValidation.php +++ b/controllers/front/failValidation.php @@ -25,6 +25,10 @@ use Invertus\SaferPay\Repository\SaferPayOrderRepository; use Invertus\SaferPay\Service\CartDuplicationService; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialFailValidationModuleFrontController extends AbstractSaferPayController { const FILENAME = 'failValidation'; diff --git a/controllers/front/hostedIframe.php b/controllers/front/hostedIframe.php index b11361206..7fb3ceb90 100755 --- a/controllers/front/hostedIframe.php +++ b/controllers/front/hostedIframe.php @@ -24,6 +24,10 @@ use Invertus\SaferPay\Config\SaferPayConfig; use PrestaShop\PrestaShop\Core\Checkout\TermsAndConditions; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialHostedIframeModuleFrontController extends ModuleFrontController { const FILENAME = 'hostedIframe'; diff --git a/controllers/front/iframe.php b/controllers/front/iframe.php index 58f355dc2..53a9659f6 100755 --- a/controllers/front/iframe.php +++ b/controllers/front/iframe.php @@ -28,6 +28,10 @@ use Invertus\SaferPay\Repository\SaferPayCardAliasRepository; use Invertus\SaferPay\Service\SaferPayInitialize; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialIFrameModuleFrontController extends AbstractSaferPayController { const FILENAME = 'iframe'; diff --git a/controllers/front/notify.php b/controllers/front/notify.php index ffb79d754..ce55cc26f 100755 --- a/controllers/front/notify.php +++ b/controllers/front/notify.php @@ -28,6 +28,10 @@ use Invertus\SaferPay\Service\SaferPayOrderStatusService; use Invertus\SaferPay\Service\TransactionFlow\SaferPayTransactionAssertion; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialNotifyModuleFrontController extends AbstractSaferPayController { const FILENAME = 'notify'; diff --git a/controllers/front/pendingNotify.php b/controllers/front/pendingNotify.php index 4e175fca6..a9eb8cd32 100755 --- a/controllers/front/pendingNotify.php +++ b/controllers/front/pendingNotify.php @@ -27,6 +27,10 @@ use Invertus\SaferPay\Repository\SaferPayOrderRepository; use Invertus\SaferPay\Service\TransactionFlow\SaferPayTransactionRefundAssertion; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialPendingNotifyModuleFrontController extends AbstractSaferPayController { const FILENAME = 'pendingNotify'; diff --git a/controllers/front/return.php b/controllers/front/return.php index 8c8b0dce0..8696bae70 100755 --- a/controllers/front/return.php +++ b/controllers/front/return.php @@ -26,6 +26,10 @@ use Invertus\SaferPay\DTO\Response\Assert\AssertBody; use Invertus\SaferPay\Service\TransactionFlow\SaferPayTransactionAssertion; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialReturnModuleFrontController extends AbstractSaferPayController { const FILENAME = 'return'; diff --git a/controllers/front/success.php b/controllers/front/success.php index 39e56e934..fc74b2408 100755 --- a/controllers/front/success.php +++ b/controllers/front/success.php @@ -23,6 +23,10 @@ use Invertus\SaferPay\Controller\AbstractSaferPayController; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialSuccessModuleFrontController extends AbstractSaferPayController { const FILENAME = 'success'; diff --git a/controllers/front/successHosted.php b/controllers/front/successHosted.php index 01d0f0be0..ee91462b9 100755 --- a/controllers/front/successHosted.php +++ b/controllers/front/successHosted.php @@ -28,6 +28,10 @@ use Invertus\SaferPay\Service\SaferPayOrderStatusService; use Invertus\SaferPay\Service\TransactionFlow\SaferPayTransactionAuthorization; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialSuccessHostedModuleFrontController extends AbstractSaferPayController { const FILENAME = 'successHosted'; diff --git a/controllers/front/successIFrame.php b/controllers/front/successIFrame.php index b9b46befc..5b2c3c9e6 100755 --- a/controllers/front/successIFrame.php +++ b/controllers/front/successIFrame.php @@ -30,6 +30,10 @@ use Invertus\SaferPay\Service\SaferPayOrderStatusService; use Invertus\SaferPay\Service\TransactionFlow\SaferPayTransactionAuthorization; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialSuccessIFrameModuleFrontController extends AbstractSaferPayController { const FILENAME = 'successIFrame'; diff --git a/controllers/front/validation.php b/controllers/front/validation.php index 0435ccce1..7a11958bf 100755 --- a/controllers/front/validation.php +++ b/controllers/front/validation.php @@ -27,6 +27,10 @@ use Invertus\SaferPay\Service\SaferPayExceptionService; use Invertus\SaferPay\Service\SaferPayInitialize; +if (!defined('_PS_VERSION_')) { + exit; +} + class SaferPayOfficialValidationModuleFrontController extends AbstractSaferPayController { const FILENAME = 'validation'; diff --git a/saferpay.config.php b/saferpay.config.php index 4d9898a7c..94c75db39 100755 --- a/saferpay.config.php +++ b/saferpay.config.php @@ -23,6 +23,10 @@ use Invertus\SaferPay\Config\SaferPayConfig; +if (!defined('_PS_VERSION_')) { + exit; +} + if (!defined('_SAFERPAY_PAYMENT_COMPLETED_')) { /** @var URL to module IMG files directory */ define('_SAFERPAY_PAYMENT_COMPLETED_', Configuration::get(SaferPayConfig::SAFERPAY_PAYMENT_COMPLETED)); diff --git a/src/Api/Request/AssertRefundService.php b/src/Api/Request/AssertRefundService.php index 4daad830f..c16c94824 100755 --- a/src/Api/Request/AssertRefundService.php +++ b/src/Api/Request/AssertRefundService.php @@ -36,6 +36,10 @@ use Invertus\SaferPay\Service\Response\AssertResponseObjectCreator; use SaferPayOrder; +if (!defined('_PS_VERSION_')) { + exit; +} + class AssertRefundService { const ASSERT_REFUND_API_TRANSACTION = 'Payment/v1/Transaction/AssertRefund'; diff --git a/src/Api/Request/AssertService.php b/src/Api/Request/AssertService.php index ee74f832c..50563d3e7 100755 --- a/src/Api/Request/AssertService.php +++ b/src/Api/Request/AssertService.php @@ -32,6 +32,10 @@ use Invertus\SaferPay\Service\Response\AssertResponseObjectCreator; use SaferPayOrder; +if (!defined('_PS_VERSION_')) { + exit; +} + class AssertService { const ASSERT_API_PAYMENT = 'Payment/v1/PaymentPage/Assert'; diff --git a/src/Api/Request/AuthorizationService.php b/src/Api/Request/AuthorizationService.php index d2d334dc7..b67f095e7 100755 --- a/src/Api/Request/AuthorizationService.php +++ b/src/Api/Request/AuthorizationService.php @@ -33,6 +33,10 @@ use Invertus\SaferPay\Exception\Api\SaferPayApiException; use Invertus\SaferPay\Service\Response\AssertResponseObjectCreator; +if (!defined('_PS_VERSION_')) { + exit; +} + class AuthorizationService { const AUTHORIZE_API = 'Payment/v1/Transaction/Authorize'; diff --git a/src/Api/Request/CancelService.php b/src/Api/Request/CancelService.php index c7f688946..cf7d21050 100755 --- a/src/Api/Request/CancelService.php +++ b/src/Api/Request/CancelService.php @@ -27,6 +27,10 @@ use Invertus\SaferPay\Api\ApiRequest; use Invertus\SaferPay\DTO\Request\Cancel\CancelRequest; +if (!defined('_PS_VERSION_')) { + exit; +} + class CancelService { const CANCEL_API = 'Payment/v1/Transaction/Cancel'; diff --git a/src/Api/Request/CaptureService.php b/src/Api/Request/CaptureService.php index f6215f714..fb59545cd 100755 --- a/src/Api/Request/CaptureService.php +++ b/src/Api/Request/CaptureService.php @@ -27,6 +27,10 @@ use Invertus\SaferPay\Api\ApiRequest; use Invertus\SaferPay\DTO\Request\Capture\CaptureRequest; +if (!defined('_PS_VERSION_')) { + exit; +} + class CaptureService { const CAPTURE_API = 'Payment/v1/Transaction/Capture'; diff --git a/src/Api/Request/InitializeService.php b/src/Api/Request/InitializeService.php index 636e30dec..3cee4204c 100755 --- a/src/Api/Request/InitializeService.php +++ b/src/Api/Request/InitializeService.php @@ -27,6 +27,10 @@ use Invertus\SaferPay\Api\ApiRequest; use Invertus\SaferPay\DTO\Request\Initialize\InitializeRequest; +if (!defined('_PS_VERSION_')) { + exit; +} + class InitializeService { const INITIALIZE_API_PAYMENT = 'Payment/v1/PaymentPage/Initialize'; diff --git a/src/Api/Request/ObtainPaymentMethodsService.php b/src/Api/Request/ObtainPaymentMethodsService.php index 3a62e2132..b9b153669 100755 --- a/src/Api/Request/ObtainPaymentMethodsService.php +++ b/src/Api/Request/ObtainPaymentMethodsService.php @@ -27,6 +27,11 @@ use Invertus\SaferPay\Api\ApiRequest; use Invertus\SaferPay\DTO\Request\ObtainPaymentMethods\ObtainPaymentMethodsRequest; +if (!defined('_PS_VERSION_')) { + exit; +} + + class ObtainPaymentMethodsService { private $apiRequest; diff --git a/src/Api/Request/RefundService.php b/src/Api/Request/RefundService.php index 2a9edf335..b5b2236d9 100755 --- a/src/Api/Request/RefundService.php +++ b/src/Api/Request/RefundService.php @@ -27,6 +27,10 @@ use Invertus\SaferPay\Api\ApiRequest; use Invertus\SaferPay\DTO\Request\Refund\RefundRequest; +if (!defined('_PS_VERSION_')) { + exit; +} + class RefundService { const REFUND_API = 'Payment/v1/Transaction/Refund'; diff --git a/views/css/admin/payment_method.css b/views/css/admin/payment_method.css index 0ca087b31..336eda6f0 100755 --- a/views/css/admin/payment_method.css +++ b/views/css/admin/payment_method.css @@ -1,3 +1,25 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + /* The container */ .container-checkbox { display: block; diff --git a/views/css/admin/saferpay_fields.css b/views/css/admin/saferpay_fields.css index 4999d1399..064c2c333 100755 --- a/views/css/admin/saferpay_fields.css +++ b/views/css/admin/saferpay_fields.css @@ -1,3 +1,25 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + /* HIDE RADIO */ [type=radio] { position: absolute; diff --git a/views/css/front/loading.css b/views/css/front/loading.css index 9ca1eb7d2..2bfd08eef 100755 --- a/views/css/front/loading.css +++ b/views/css/front/loading.css @@ -1,3 +1,25 @@ +/** + *NOTICE OF LICENSE + * + *This source file is subject to the Open Software License (OSL 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/osl-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 INVERTUS UAB www.invertus.eu + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + .loader { border: 16px solid #f3f3f3; border-radius: 50%; From d5b4988fe0eb5df5415390c9ed052200f225dd2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20=C5=A0mulk=C5=A1tys?= Date: Thu, 23 Nov 2023 10:02:17 +0200 Subject: [PATCH 8/9] fix index.php formatting --- controllers/admin/index.php | 13 ++++++------- controllers/front/index.php | 13 ++++++------- controllers/index.php | 13 ++++++------- cypress/fixtures/index.php | 14 ++++++-------- cypress/index.php | 14 ++++++-------- cypress/integration/index.php | 14 ++++++-------- cypress/plugins/index.php | 14 ++++++-------- cypress/support/index.php | 14 ++++++-------- index.php | 13 ++++++------- src/Adapter/index.php | 13 ++++++------- src/Api/Enum/index.php | 14 ++++++-------- src/Api/Request/index.php | 13 ++++++------- src/Api/index.php | 13 ++++++------- src/Builder/index.php | 13 ++++++------- src/Config/index.php | 13 ++++++------- src/Controller/index.php | 13 ++++++------- src/Core/Order/Verification/index.php | 14 ++++++-------- src/Core/Order/index.php | 14 ++++++-------- src/Core/index.php | 14 ++++++-------- src/DTO/Request/Assert/index.php | 13 ++++++------- src/DTO/Request/AssertRefund/index.php | 13 ++++++------- src/DTO/Request/Authorization/index.php | 13 ++++++------- src/DTO/Request/Cancel/index.php | 13 ++++++------- src/DTO/Request/Capture/index.php | 13 ++++++------- src/DTO/Request/Initialize/index.php | 13 ++++++------- src/DTO/Request/ObtainPaymentMethods/index.php | 14 ++++++-------- src/DTO/Request/Refund/index.php | 13 ++++++------- src/DTO/Request/index.php | 13 ++++++------- src/DTO/Response/Assert/index.php | 13 ++++++------- src/DTO/Response/AssertRefund/index.php | 13 ++++++------- src/DTO/Response/Authorization/index.php | 13 ++++++------- src/DTO/Response/Initialize/index.php | 13 ++++++------- src/DTO/Response/index.php | 13 ++++++------- src/DTO/index.php | 13 ++++++------- src/Entity/index.php | 13 ++++++------- src/EntityBuilder/index.php | 13 ++++++------- src/Enum/index.php | 13 ++++++------- src/Exception/Api/index.php | 13 ++++++------- src/Exception/Restriction/index.php | 13 ++++++------- src/Exception/index.php | 13 ++++++------- src/Factory/index.php | 14 ++++++-------- src/Install/index.php | 13 ++++++------- src/Presentation/Loader/index.php | 14 ++++++-------- src/Presentation/index.php | 14 ++++++-------- src/Presenter/index.php | 13 ++++++------- src/Provider/index.php | 13 ++++++------- src/Repository/index.php | 13 ++++++------- src/Service/PaymentRestrictionValidation/index.php | 13 ++++++------- src/Service/Request/index.php | 13 ++++++------- src/Service/Response/index.php | 13 ++++++------- src/Service/TransactionFlow/index.php | 13 ++++++------- src/Service/index.php | 13 ++++++------- src/ServiceProvider/index.php | 13 ++++++------- src/Utility/index.php | 13 ++++++------- src/index.php | 13 ++++++------- tests/Integration/Payment/index.php | 13 ++++++------- tests/Integration/Tools/index.php | 13 ++++++------- tests/Integration/index.php | 13 ++++++------- .../Service/PaymentRestrictionValidation/index.php | 13 ++++++------- tests/Unit/Service/index.php | 13 ++++++------- tests/Unit/Tools/index.php | 13 ++++++------- tests/Unit/Utility/index.php | 13 ++++++------- tests/Unit/index.php | 13 ++++++------- tests/index.php | 13 ++++++------- tests/seed/database/index.php | 2 -- tests/seed/index.php | 2 -- tests/seed/settings1764/index.php | 2 -- tests/seed/settings1770/index.php | 2 -- tests/seed/settings1784/index.php | 2 -- tests/seed/settings1786/index.php | 2 -- translations/index.php | 14 ++++++-------- upgrade/index.php | 13 ++++++------- views/css/admin/index.php | 13 ++++++------- views/css/front/hosted-templates/index.php | 13 ++++++------- views/css/front/index.php | 13 ++++++------- views/css/index.php | 13 ++++++------- views/img/example-card/index.php | 13 ++++++------- views/img/hosted-templates/index.php | 13 ++++++------- views/img/index.php | 13 ++++++------- views/img/readme/index.php | 13 ++++++------- views/img/state/index.php | 13 ++++++------- views/index.php | 13 ++++++------- views/js/admin/index.php | 13 ++++++------- views/js/front/hosted-templates/index.php | 13 ++++++------- views/js/front/index.php | 13 ++++++------- views/js/index.php | 13 ++++++------- .../admin/field-option-settings/helpers/index.php | 1 - .../helpers/options/index.php | 1 - .../admin/field-option-settings/index.php | 1 - views/templates/admin/index.php | 13 ++++++------- views/templates/admin/partials/index.php | 13 ++++++------- views/templates/front/hosted-templates/index.php | 1 - .../front/hosted-templates/partials/index.php | 13 ++++++------- views/templates/front/index.php | 13 ++++++------- views/templates/hook/admin/index.php | 13 ++++++------- views/templates/hook/front/index.php | 13 ++++++------- views/templates/hook/index.php | 13 ++++++------- views/templates/index.php | 13 ++++++------- 98 files changed, 528 insertions(+), 646 deletions(-) diff --git a/controllers/admin/index.php b/controllers/admin/index.php index eeb2b1cf3..ee6227264 100755 --- a/controllers/admin/index.php +++ b/controllers/admin/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/controllers/front/index.php b/controllers/front/index.php index eeb2b1cf3..ee6227264 100755 --- a/controllers/front/index.php +++ b/controllers/front/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/controllers/index.php b/controllers/index.php index eeb2b1cf3..ee6227264 100755 --- a/controllers/index.php +++ b/controllers/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/cypress/fixtures/index.php b/cypress/fixtures/index.php index d5a8315fc..ee6227264 100644 --- a/cypress/fixtures/index.php +++ b/cypress/fixtures/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/cypress/index.php b/cypress/index.php index d5a8315fc..ee6227264 100644 --- a/cypress/index.php +++ b/cypress/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/cypress/integration/index.php b/cypress/integration/index.php index d5a8315fc..ee6227264 100644 --- a/cypress/integration/index.php +++ b/cypress/integration/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/cypress/plugins/index.php b/cypress/plugins/index.php index d5a8315fc..ee6227264 100644 --- a/cypress/plugins/index.php +++ b/cypress/plugins/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/cypress/support/index.php b/cypress/support/index.php index d5a8315fc..ee6227264 100644 --- a/cypress/support/index.php +++ b/cypress/support/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/index.php b/index.php index eeb2b1cf3..ee6227264 100755 --- a/index.php +++ b/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Adapter/index.php b/src/Adapter/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Adapter/index.php +++ b/src/Adapter/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Api/Enum/index.php b/src/Api/Enum/index.php index d5a8315fc..ee6227264 100644 --- a/src/Api/Enum/index.php +++ b/src/Api/Enum/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/src/Api/Request/index.php b/src/Api/Request/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Api/Request/index.php +++ b/src/Api/Request/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Api/index.php b/src/Api/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Api/index.php +++ b/src/Api/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Builder/index.php b/src/Builder/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Builder/index.php +++ b/src/Builder/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Config/index.php b/src/Config/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Config/index.php +++ b/src/Config/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Controller/index.php b/src/Controller/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Controller/index.php +++ b/src/Controller/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Core/Order/Verification/index.php b/src/Core/Order/Verification/index.php index d5a8315fc..ee6227264 100644 --- a/src/Core/Order/Verification/index.php +++ b/src/Core/Order/Verification/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/src/Core/Order/index.php b/src/Core/Order/index.php index d5a8315fc..ee6227264 100644 --- a/src/Core/Order/index.php +++ b/src/Core/Order/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/src/Core/index.php b/src/Core/index.php index d5a8315fc..ee6227264 100644 --- a/src/Core/index.php +++ b/src/Core/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Request/Assert/index.php b/src/DTO/Request/Assert/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/Request/Assert/index.php +++ b/src/DTO/Request/Assert/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Request/AssertRefund/index.php b/src/DTO/Request/AssertRefund/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/Request/AssertRefund/index.php +++ b/src/DTO/Request/AssertRefund/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Request/Authorization/index.php b/src/DTO/Request/Authorization/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/Request/Authorization/index.php +++ b/src/DTO/Request/Authorization/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Request/Cancel/index.php b/src/DTO/Request/Cancel/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/Request/Cancel/index.php +++ b/src/DTO/Request/Cancel/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Request/Capture/index.php b/src/DTO/Request/Capture/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/Request/Capture/index.php +++ b/src/DTO/Request/Capture/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Request/Initialize/index.php b/src/DTO/Request/Initialize/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/Request/Initialize/index.php +++ b/src/DTO/Request/Initialize/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Request/ObtainPaymentMethods/index.php b/src/DTO/Request/ObtainPaymentMethods/index.php index d5a8315fc..ee6227264 100644 --- a/src/DTO/Request/ObtainPaymentMethods/index.php +++ b/src/DTO/Request/ObtainPaymentMethods/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Request/Refund/index.php b/src/DTO/Request/Refund/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/Request/Refund/index.php +++ b/src/DTO/Request/Refund/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Request/index.php b/src/DTO/Request/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/Request/index.php +++ b/src/DTO/Request/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Response/Assert/index.php b/src/DTO/Response/Assert/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/Response/Assert/index.php +++ b/src/DTO/Response/Assert/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Response/AssertRefund/index.php b/src/DTO/Response/AssertRefund/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/Response/AssertRefund/index.php +++ b/src/DTO/Response/AssertRefund/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Response/Authorization/index.php b/src/DTO/Response/Authorization/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/Response/Authorization/index.php +++ b/src/DTO/Response/Authorization/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Response/Initialize/index.php b/src/DTO/Response/Initialize/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/Response/Initialize/index.php +++ b/src/DTO/Response/Initialize/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/Response/index.php b/src/DTO/Response/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/Response/index.php +++ b/src/DTO/Response/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/DTO/index.php b/src/DTO/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/DTO/index.php +++ b/src/DTO/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Entity/index.php b/src/Entity/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Entity/index.php +++ b/src/Entity/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/EntityBuilder/index.php b/src/EntityBuilder/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/EntityBuilder/index.php +++ b/src/EntityBuilder/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Enum/index.php b/src/Enum/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Enum/index.php +++ b/src/Enum/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Exception/Api/index.php b/src/Exception/Api/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Exception/Api/index.php +++ b/src/Exception/Api/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Exception/Restriction/index.php b/src/Exception/Restriction/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Exception/Restriction/index.php +++ b/src/Exception/Restriction/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Exception/index.php b/src/Exception/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Exception/index.php +++ b/src/Exception/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Factory/index.php b/src/Factory/index.php index d5a8315fc..ee6227264 100644 --- a/src/Factory/index.php +++ b/src/Factory/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/src/Install/index.php b/src/Install/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Install/index.php +++ b/src/Install/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Presentation/Loader/index.php b/src/Presentation/Loader/index.php index d5a8315fc..ee6227264 100644 --- a/src/Presentation/Loader/index.php +++ b/src/Presentation/Loader/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/src/Presentation/index.php b/src/Presentation/index.php index d5a8315fc..ee6227264 100644 --- a/src/Presentation/index.php +++ b/src/Presentation/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/src/Presenter/index.php b/src/Presenter/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Presenter/index.php +++ b/src/Presenter/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Provider/index.php b/src/Provider/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Provider/index.php +++ b/src/Provider/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Repository/index.php b/src/Repository/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Repository/index.php +++ b/src/Repository/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Service/PaymentRestrictionValidation/index.php b/src/Service/PaymentRestrictionValidation/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Service/PaymentRestrictionValidation/index.php +++ b/src/Service/PaymentRestrictionValidation/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Service/Request/index.php b/src/Service/Request/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Service/Request/index.php +++ b/src/Service/Request/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Service/Response/index.php b/src/Service/Response/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Service/Response/index.php +++ b/src/Service/Response/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Service/TransactionFlow/index.php b/src/Service/TransactionFlow/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Service/TransactionFlow/index.php +++ b/src/Service/TransactionFlow/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Service/index.php b/src/Service/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Service/index.php +++ b/src/Service/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/ServiceProvider/index.php b/src/ServiceProvider/index.php index 8b2dfeb82..ee6227264 100644 --- a/src/ServiceProvider/index.php +++ b/src/ServiceProvider/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/Utility/index.php b/src/Utility/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/Utility/index.php +++ b/src/Utility/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/src/index.php b/src/index.php index eeb2b1cf3..ee6227264 100755 --- a/src/index.php +++ b/src/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/tests/Integration/Payment/index.php b/tests/Integration/Payment/index.php index eeb2b1cf3..ee6227264 100755 --- a/tests/Integration/Payment/index.php +++ b/tests/Integration/Payment/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/tests/Integration/Tools/index.php b/tests/Integration/Tools/index.php index eeb2b1cf3..ee6227264 100755 --- a/tests/Integration/Tools/index.php +++ b/tests/Integration/Tools/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/tests/Integration/index.php b/tests/Integration/index.php index eeb2b1cf3..ee6227264 100755 --- a/tests/Integration/index.php +++ b/tests/Integration/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/tests/Unit/Service/PaymentRestrictionValidation/index.php b/tests/Unit/Service/PaymentRestrictionValidation/index.php index eeb2b1cf3..ee6227264 100755 --- a/tests/Unit/Service/PaymentRestrictionValidation/index.php +++ b/tests/Unit/Service/PaymentRestrictionValidation/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/tests/Unit/Service/index.php b/tests/Unit/Service/index.php index eeb2b1cf3..ee6227264 100755 --- a/tests/Unit/Service/index.php +++ b/tests/Unit/Service/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/tests/Unit/Tools/index.php b/tests/Unit/Tools/index.php index eeb2b1cf3..ee6227264 100755 --- a/tests/Unit/Tools/index.php +++ b/tests/Unit/Tools/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/tests/Unit/Utility/index.php b/tests/Unit/Utility/index.php index eeb2b1cf3..ee6227264 100755 --- a/tests/Unit/Utility/index.php +++ b/tests/Unit/Utility/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/tests/Unit/index.php b/tests/Unit/index.php index eeb2b1cf3..ee6227264 100755 --- a/tests/Unit/index.php +++ b/tests/Unit/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/tests/index.php b/tests/index.php index eeb2b1cf3..ee6227264 100755 --- a/tests/index.php +++ b/tests/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/tests/seed/database/index.php b/tests/seed/database/index.php index ba024d25f..ee6227264 100755 --- a/tests/seed/database/index.php +++ b/tests/seed/database/index.php @@ -20,8 +20,6 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ - - header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/tests/seed/index.php b/tests/seed/index.php index ba024d25f..ee6227264 100755 --- a/tests/seed/index.php +++ b/tests/seed/index.php @@ -20,8 +20,6 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ - - header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/tests/seed/settings1764/index.php b/tests/seed/settings1764/index.php index ba024d25f..ee6227264 100755 --- a/tests/seed/settings1764/index.php +++ b/tests/seed/settings1764/index.php @@ -20,8 +20,6 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ - - header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/tests/seed/settings1770/index.php b/tests/seed/settings1770/index.php index ba024d25f..ee6227264 100755 --- a/tests/seed/settings1770/index.php +++ b/tests/seed/settings1770/index.php @@ -20,8 +20,6 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ - - header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/tests/seed/settings1784/index.php b/tests/seed/settings1784/index.php index ba024d25f..ee6227264 100755 --- a/tests/seed/settings1784/index.php +++ b/tests/seed/settings1784/index.php @@ -20,8 +20,6 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ - - header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/tests/seed/settings1786/index.php b/tests/seed/settings1786/index.php index ba024d25f..ee6227264 100755 --- a/tests/seed/settings1786/index.php +++ b/tests/seed/settings1786/index.php @@ -20,8 +20,6 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ - - header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/translations/index.php b/translations/index.php index d5a8315fc..ee6227264 100644 --- a/translations/index.php +++ b/translations/index.php @@ -20,14 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +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("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: ../"); +header('Location: ../'); exit; diff --git a/upgrade/index.php b/upgrade/index.php index eeb2b1cf3..ee6227264 100755 --- a/upgrade/index.php +++ b/upgrade/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/css/admin/index.php b/views/css/admin/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/css/admin/index.php +++ b/views/css/admin/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/css/front/hosted-templates/index.php b/views/css/front/hosted-templates/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/css/front/hosted-templates/index.php +++ b/views/css/front/hosted-templates/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/css/front/index.php b/views/css/front/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/css/front/index.php +++ b/views/css/front/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/css/index.php b/views/css/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/css/index.php +++ b/views/css/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/img/example-card/index.php b/views/img/example-card/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/img/example-card/index.php +++ b/views/img/example-card/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/img/hosted-templates/index.php b/views/img/hosted-templates/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/img/hosted-templates/index.php +++ b/views/img/hosted-templates/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/img/index.php b/views/img/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/img/index.php +++ b/views/img/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/img/readme/index.php b/views/img/readme/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/img/readme/index.php +++ b/views/img/readme/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/img/state/index.php b/views/img/state/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/img/state/index.php +++ b/views/img/state/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/index.php b/views/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/index.php +++ b/views/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/js/admin/index.php b/views/js/admin/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/js/admin/index.php +++ b/views/js/admin/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/js/front/hosted-templates/index.php b/views/js/front/hosted-templates/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/js/front/hosted-templates/index.php +++ b/views/js/front/hosted-templates/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/js/front/index.php b/views/js/front/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/js/front/index.php +++ b/views/js/front/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/js/index.php b/views/js/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/js/index.php +++ b/views/js/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/templates/admin/field-option-settings/helpers/index.php b/views/templates/admin/field-option-settings/helpers/index.php index aafc1748d..ee6227264 100755 --- a/views/templates/admin/field-option-settings/helpers/index.php +++ b/views/templates/admin/field-option-settings/helpers/index.php @@ -20,7 +20,6 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ - header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/views/templates/admin/field-option-settings/helpers/options/index.php b/views/templates/admin/field-option-settings/helpers/options/index.php index aafc1748d..ee6227264 100755 --- a/views/templates/admin/field-option-settings/helpers/options/index.php +++ b/views/templates/admin/field-option-settings/helpers/options/index.php @@ -20,7 +20,6 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ - header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/views/templates/admin/field-option-settings/index.php b/views/templates/admin/field-option-settings/index.php index aafc1748d..ee6227264 100755 --- a/views/templates/admin/field-option-settings/index.php +++ b/views/templates/admin/field-option-settings/index.php @@ -20,7 +20,6 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ - header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/views/templates/admin/index.php b/views/templates/admin/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/templates/admin/index.php +++ b/views/templates/admin/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/templates/admin/partials/index.php b/views/templates/admin/partials/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/templates/admin/partials/index.php +++ b/views/templates/admin/partials/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/templates/front/hosted-templates/index.php b/views/templates/front/hosted-templates/index.php index aafc1748d..ee6227264 100755 --- a/views/templates/front/hosted-templates/index.php +++ b/views/templates/front/hosted-templates/index.php @@ -20,7 +20,6 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ - header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); diff --git a/views/templates/front/hosted-templates/partials/index.php b/views/templates/front/hosted-templates/partials/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/templates/front/hosted-templates/partials/index.php +++ b/views/templates/front/hosted-templates/partials/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/templates/front/index.php b/views/templates/front/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/templates/front/index.php +++ b/views/templates/front/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/templates/hook/admin/index.php b/views/templates/hook/admin/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/templates/hook/admin/index.php +++ b/views/templates/hook/admin/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/templates/hook/front/index.php b/views/templates/hook/front/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/templates/hook/front/index.php +++ b/views/templates/hook/front/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/templates/hook/index.php b/views/templates/hook/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/templates/hook/index.php +++ b/views/templates/hook/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; diff --git a/views/templates/index.php b/views/templates/index.php index eeb2b1cf3..ee6227264 100755 --- a/views/templates/index.php +++ b/views/templates/index.php @@ -20,13 +20,12 @@ *@copyright SIX Payment Services *@license SIX Payment Services */ +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -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("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); +header('Location: ../'); exit; From 8ddbccd8e29e2bb4e3b39ce7f3ed2feb221a02aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20=C5=A0mulk=C5=A1tys?= Date: Thu, 23 Nov 2023 10:06:03 +0200 Subject: [PATCH 9/9] cs fixes applied --- .../AdminSaferPayOfficialPaymentController.php | 2 +- controllers/front/hostedIframe.php | 2 +- controllers/front/pendingNotify.php | 2 +- controllers/front/return.php | 1 - controllers/front/successIFrame.php | 1 - saferpayofficial.php | 10 +++++----- src/Api/ApiRequest.php | 5 ++--- src/Api/Enum/TransactionStatus.php | 2 +- src/Api/Request/AssertRefundService.php | 6 ------ src/Api/Request/CancelService.php | 2 +- src/Api/Request/RefundService.php | 2 +- src/Config/SaferPayConfig.php | 2 +- .../Verification/CanSendOrderConfirmationEmail.php | 2 +- .../Request/AssertRefund/AssertRefundRequest.php | 4 ++-- src/DTO/Request/Capture/CaptureRequest.php | 2 +- src/DTO/Request/Initialize/InitializeRequest.php | 14 +++++++------- .../ObtainPaymentMethodsRequest.php | 1 - src/DTO/Request/Refund/RefundRequest.php | 5 ++--- src/DTO/Response/AssertRefund/AssertRefundBody.php | 7 ------- src/Enum/ControllerName.php | 2 +- src/Enum/PaymentType.php | 2 +- src/Factory/ModuleFactory.php | 2 +- src/Install/Installer.php | 3 --- src/Install/Uninstaller.php | 3 +-- src/Presentation/Loader/PaymentFormAssetLoader.php | 4 ++-- src/Provider/PaymentRedirectionProvider.php | 4 ---- src/Provider/PaymentRestrictionProvider.php | 8 +++----- src/Provider/PaymentTypeProvider.php | 2 +- src/Repository/SaferPayFieldRepository.php | 2 +- src/Repository/SaferPayPaymentRepository.php | 2 +- .../BasePaymentRestrictionValidation.php | 1 - .../Request/AssertRefundRequestObjectCreator.php | 2 -- src/Service/Request/AssertRequestObjectCreator.php | 1 - .../Request/CaptureRequestObjectCreator.php | 1 - .../Request/InitializeRequestObjectCreator.php | 2 +- .../Request/ObtainPaymentMethodsObjectCreator.php | 1 - src/Service/SaferPayInitialize.php | 2 +- src/Service/SaferPayMailService.php | 14 +++++++++++--- src/Service/SaferPayObtainPaymentMethods.php | 4 ++-- src/Service/SaferPayOrderStatusService.php | 8 ++++---- src/Service/SaferPayPaymentNotation.php | 2 +- src/Service/SaferPayRefreshPaymentsService.php | 9 ++++----- src/ServiceProvider/BaseServiceProvider.php | 2 +- .../LeagueServiceContainerProvider.php | 2 +- .../ServiceContainerProviderInterface.php | 2 +- tests/Unit/Service/SaferPayPaymentNotationTest.php | 2 -- 46 files changed, 66 insertions(+), 95 deletions(-) diff --git a/controllers/admin/AdminSaferPayOfficialPaymentController.php b/controllers/admin/AdminSaferPayOfficialPaymentController.php index aa24a9c64..5a85cc654 100755 --- a/controllers/admin/AdminSaferPayOfficialPaymentController.php +++ b/controllers/admin/AdminSaferPayOfficialPaymentController.php @@ -272,7 +272,7 @@ protected function initForm() foreach ($paymentMethods as $paymentMethod) { $fields[] = [ 'type' => 'free', - 'label' => $saferPayPaymentNotation->getForDisplay($paymentMethod) , + 'label' => $saferPayPaymentNotation->getForDisplay($paymentMethod), 'name' => $paymentMethod, 'form_group_class' => 'saferpay-group', ]; diff --git a/controllers/front/hostedIframe.php b/controllers/front/hostedIframe.php index 7fb3ceb90..b03306371 100755 --- a/controllers/front/hostedIframe.php +++ b/controllers/front/hostedIframe.php @@ -46,7 +46,7 @@ public function initContent() 'credit_card_front_url' => "{$this->module->getPathUri()}views/img/example-card/credit-card-front.png", 'credit_card_back_url' => "{$this->module->getPathUri()}views/img/example-card/credit-card-back.png", 'tos_cms' => SaferPayConfig::isVersionAbove177() ? $this->getDefaultTermsAndConditions() : null, - 'saferpay_selected_card' => $selectedCard + 'saferpay_selected_card' => $selectedCard, ]); if (SaferPayConfig::isVersion17()) { diff --git a/controllers/front/pendingNotify.php b/controllers/front/pendingNotify.php index a9eb8cd32..208aa062c 100755 --- a/controllers/front/pendingNotify.php +++ b/controllers/front/pendingNotify.php @@ -99,7 +99,7 @@ private function handleCapturedRefund($orderRefundId) $order = new Order($orderRefund->id_order); - if ((int)$orderAssert->refunded_amount === (int)$orderAssert->amount) { + if ((int) $orderAssert->refunded_amount === (int) $orderAssert->amount) { $saferPayOrder = new SaferPayOrder($orderRefund->id_saferpay_order); $saferPayOrder->refunded = 1; $saferPayOrder->save(); diff --git a/controllers/front/return.php b/controllers/front/return.php index 8696bae70..80e18760e 100755 --- a/controllers/front/return.php +++ b/controllers/front/return.php @@ -79,7 +79,6 @@ public function postProcess() ], true )); - } catch (Exception $e) { PrestaShopLogger::addLog( sprintf( diff --git a/controllers/front/successIFrame.php b/controllers/front/successIFrame.php index 5b2c3c9e6..8ede330d4 100755 --- a/controllers/front/successIFrame.php +++ b/controllers/front/successIFrame.php @@ -22,7 +22,6 @@ */ use Invertus\SaferPay\Api\Enum\TransactionStatus; -use Invertus\SaferPay\Api\Request\AuthorizationService; use Invertus\SaferPay\Config\SaferPayConfig; use Invertus\SaferPay\Controller\AbstractSaferPayController; use Invertus\SaferPay\Enum\ControllerName; diff --git a/saferpayofficial.php b/saferpayofficial.php index 65fedf0a3..a3d5fb1ea 100755 --- a/saferpayofficial.php +++ b/saferpayofficial.php @@ -231,7 +231,7 @@ public function hookPaymentOptions($params) $inputs['type'] = [ 'name' => 'saferpayPaymentType', 'type' => 'hidden', - 'value' => $paymentTypeProvider->get($paymentMethod['paymentMethod']) + 'value' => $paymentTypeProvider->get($paymentMethod['paymentMethod']), ]; $newOption->setModuleName($this->name) @@ -458,7 +458,7 @@ public function hookDisplayPayment($params) 'redirect' => $paymentRedirectionProvider->provideRedirectionLinkByPaymentMethod($paymentMethod['paymentMethod']), 'imgUrl' => $imageUrl, 'method' => $paymentMethod['paymentMethod'], - 'saferpayPaymentType' => $paymentTypeProvider->get($paymentMethod['paymentMethod']) + 'saferpayPaymentType' => $paymentTypeProvider->get($paymentMethod['paymentMethod']), ] ); @@ -571,7 +571,7 @@ public function hookActionOrderStatusUpdate($params = []) $canSendOrderConfirmationEmail = $this->getService(\Invertus\SaferPay\Core\Order\Verification\CanSendOrderConfirmationEmail::class); if ($canSendOrderConfirmationEmail->verify($order, (int) $orderStatus->id)) { - $mailService->sendOrderConfMail($order, (int)$orderStatus->id); + $mailService->sendOrderConfMail($order, (int) $orderStatus->id); } } @@ -652,8 +652,8 @@ private function displayInAdminOrderPage(array $params) ); } else { $action = $this->context->link->getAdminLink( - self::ADMIN_ORDER_CONTROLLER - ) . '&id_order=' . (int) $orderId; + self::ADMIN_ORDER_CONTROLLER + ) . '&id_order=' . (int) $orderId; } diff --git a/src/Api/ApiRequest.php b/src/Api/ApiRequest.php index f6c964d53..14e4fed5c 100755 --- a/src/Api/ApiRequest.php +++ b/src/Api/ApiRequest.php @@ -106,7 +106,7 @@ private function getHeaders() 'Content-Type' => 'application/json', 'Saferpay-ApiVersion' => SaferPayConfig::API_VERSION, 'Saferpay-RequestId' => 'false', - 'Authorization' => "Basic $credentials" + 'Authorization' => "Basic $credentials", ]; } @@ -117,9 +117,8 @@ private function getBaseUrl() private function isValidResponse(Response $response) { - if ($response->code >= 300){ + if ($response->code >= 300) { throw new SaferPayApiException(sprintf('Initialize API failed: %s', $response->raw_body), SaferPayApiException::INITIALIZE); } } } - diff --git a/src/Api/Enum/TransactionStatus.php b/src/Api/Enum/TransactionStatus.php index be7edec38..58e1030ed 100644 --- a/src/Api/Enum/TransactionStatus.php +++ b/src/Api/Enum/TransactionStatus.php @@ -33,4 +33,4 @@ class TransactionStatus const CANCELED = 'CANCELED'; const CAPTURED = 'CAPTURED'; const PENDING = 'PENDING'; -} \ No newline at end of file +} diff --git a/src/Api/Request/AssertRefundService.php b/src/Api/Request/AssertRefundService.php index c16c94824..f626f1ab6 100755 --- a/src/Api/Request/AssertRefundService.php +++ b/src/Api/Request/AssertRefundService.php @@ -25,16 +25,10 @@ use Exception; use Invertus\SaferPay\Api\ApiRequest; -use Invertus\SaferPay\DTO\Request\Assert\AssertRequest; use Invertus\SaferPay\DTO\Request\AssertRefund\AssertRefundRequest; -use Invertus\SaferPay\DTO\Response\Assert\AssertBody; -use Invertus\SaferPay\DTO\Response\AssertRefund\AssertRefundBody; -use Invertus\SaferPay\EntityBuilder\SaferPayAssertBuilder; use Invertus\SaferPay\EntityBuilder\SaferPayAssertRefundBuilder; use Invertus\SaferPay\Exception\Api\SaferPayApiException; use Invertus\SaferPay\Service\Response\AssertRefundResponseObjectCreator; -use Invertus\SaferPay\Service\Response\AssertResponseObjectCreator; -use SaferPayOrder; if (!defined('_PS_VERSION_')) { exit; diff --git a/src/Api/Request/CancelService.php b/src/Api/Request/CancelService.php index cf7d21050..f6f791ba5 100755 --- a/src/Api/Request/CancelService.php +++ b/src/Api/Request/CancelService.php @@ -52,7 +52,7 @@ public function cancel(CancelRequest $cancelRequest) { return $this->apiRequest->post( self::CANCEL_API, - $cancelRequest->getAsArray() + $cancelRequest->getAsArray() ); } } diff --git a/src/Api/Request/RefundService.php b/src/Api/Request/RefundService.php index b5b2236d9..3cfb17960 100755 --- a/src/Api/Request/RefundService.php +++ b/src/Api/Request/RefundService.php @@ -52,7 +52,7 @@ public function refund(RefundRequest $refundRequest) { return $this->apiRequest->post( self::REFUND_API, - $refundRequest->getAsArray() + $refundRequest->getAsArray() ); } } diff --git a/src/Config/SaferPayConfig.php b/src/Config/SaferPayConfig.php index 59b044700..3aef29da5 100755 --- a/src/Config/SaferPayConfig.php +++ b/src/Config/SaferPayConfig.php @@ -138,7 +138,7 @@ class SaferPayConfig 'Postcard' => self::PAYMENT_POSTCARD, 'BonusCard' => self::PAYMENT_BONUS, 'Lastschrift' => self::PAYMENT_LASTSCHRIFT, - 'SOFORTUEBERWEISUNG' => self::PAYMENT_SOFORT + 'SOFORTUEBERWEISUNG' => self::PAYMENT_SOFORT, ]; const FIELD_SUPPORTED_PAYMENT_METHODS = [ diff --git a/src/Core/Order/Verification/CanSendOrderConfirmationEmail.php b/src/Core/Order/Verification/CanSendOrderConfirmationEmail.php index a3b0598f5..a83daeb72 100644 --- a/src/Core/Order/Verification/CanSendOrderConfirmationEmail.php +++ b/src/Core/Order/Verification/CanSendOrderConfirmationEmail.php @@ -60,4 +60,4 @@ private function isOrderStatusValid($orderStatusId) return false; } -} \ No newline at end of file +} diff --git a/src/DTO/Request/AssertRefund/AssertRefundRequest.php b/src/DTO/Request/AssertRefund/AssertRefundRequest.php index 512b03d53..80a2b8e96 100755 --- a/src/DTO/Request/AssertRefund/AssertRefundRequest.php +++ b/src/DTO/Request/AssertRefund/AssertRefundRequest.php @@ -61,8 +61,8 @@ public function getAsArray() 'ClientInfo' => $this->requestHeader->getClientInfo(), ], 'TransactionReference' => [ - 'TransactionId' => $this->transactionId - ] + 'TransactionId' => $this->transactionId, + ], ]; return $return; diff --git a/src/DTO/Request/Capture/CaptureRequest.php b/src/DTO/Request/Capture/CaptureRequest.php index 074297d21..6d3c6da86 100755 --- a/src/DTO/Request/Capture/CaptureRequest.php +++ b/src/DTO/Request/Capture/CaptureRequest.php @@ -73,7 +73,7 @@ public function getAsArray() ], 'TransactionReference' => [ 'TransactionId' => $this->transactionId, - ] + ], ]; return $return; diff --git a/src/DTO/Request/Initialize/InitializeRequest.php b/src/DTO/Request/Initialize/InitializeRequest.php index 860a3c777..9b10f0157 100755 --- a/src/DTO/Request/Initialize/InitializeRequest.php +++ b/src/DTO/Request/Initialize/InitializeRequest.php @@ -123,21 +123,21 @@ class InitializeRequest public function __construct( RequestHeader $requestHeader, - $terminalId, - $paymentMethod, + $terminalId, + $paymentMethod, Payment $payment, Payer $payer, ReturnUrl $returnUrl, - $notification, + $notification, DeliveryAddressForm $deliveryAddressForm, - $configSet, - $cssUrl, + $configSet, + $cssUrl, Address $deliveryAddress, Address $billingAddress, - $alias, + $alias, Order $order, PayerProfile $payerProfile, - $fieldToken + $fieldToken ) { $this->requestHeader = $requestHeader; $this->terminalId = $terminalId; diff --git a/src/DTO/Request/ObtainPaymentMethods/ObtainPaymentMethodsRequest.php b/src/DTO/Request/ObtainPaymentMethods/ObtainPaymentMethodsRequest.php index 844e70261..12a53f83f 100755 --- a/src/DTO/Request/ObtainPaymentMethods/ObtainPaymentMethodsRequest.php +++ b/src/DTO/Request/ObtainPaymentMethods/ObtainPaymentMethodsRequest.php @@ -23,7 +23,6 @@ namespace Invertus\SaferPay\DTO\Request\ObtainPaymentMethods; -use Invertus\SaferPay\Config\SaferPayConfig; use Invertus\SaferPay\DTO\Request\RequestHeader; if (!defined('_PS_VERSION_')) { diff --git a/src/DTO/Request/Refund/RefundRequest.php b/src/DTO/Request/Refund/RefundRequest.php index 7aca8f190..864c5e1f8 100755 --- a/src/DTO/Request/Refund/RefundRequest.php +++ b/src/DTO/Request/Refund/RefundRequest.php @@ -23,7 +23,6 @@ namespace Invertus\SaferPay\DTO\Request\Refund; -use Invertus\SaferPay\Api\Request\RefundService; use Invertus\SaferPay\Config\SaferPayConfig; use Invertus\SaferPay\DTO\Request\Payment; use Invertus\SaferPay\DTO\Request\PendingNotification; @@ -73,7 +72,7 @@ public function getAsArray() { $return = [ 'RequestHeader' => [ - 'SpecVersion' => (string)Configuration::get(RequestHeader::SPEC_REFUND_VERSION), + 'SpecVersion' => (string) Configuration::get(RequestHeader::SPEC_REFUND_VERSION), 'CustomerId' => $this->requestHeader->getCustomerId(), 'RequestId' => $this->requestHeader->getRequestId(), 'RetryIndicator' => $this->requestHeader->getRetryIndicator(), @@ -86,7 +85,7 @@ public function getAsArray() ], 'OrderId' => $this->payment->getOrderReference(), //for delay testing: NotifyRefund_DelayedResponse60 'RestrictRefundAmountToCapturedAmount' => - (bool)Configuration::get(SaferPayConfig::RESTRICT_REFUND_AMOUNT_TO_CAPTURED_AMOUNT), + (bool) Configuration::get(SaferPayConfig::RESTRICT_REFUND_AMOUNT_TO_CAPTURED_AMOUNT), ], 'CaptureReference' => [ 'CaptureId' => $this->transactionId, diff --git a/src/DTO/Response/AssertRefund/AssertRefundBody.php b/src/DTO/Response/AssertRefund/AssertRefundBody.php index d61466f9c..4d0c91658 100755 --- a/src/DTO/Response/AssertRefund/AssertRefundBody.php +++ b/src/DTO/Response/AssertRefund/AssertRefundBody.php @@ -23,14 +23,7 @@ namespace Invertus\SaferPay\DTO\Response\AssertRefund; -use Invertus\SaferPay\DTO\Response\Dcc; -use Invertus\SaferPay\DTO\Response\Liability; -use Invertus\SaferPay\DTO\Response\Payer; -use Invertus\SaferPay\DTO\Response\PaymentMeans; -use Invertus\SaferPay\DTO\Response\RegistrationResult; use Invertus\SaferPay\DTO\Response\ResponseHeader; -use Invertus\SaferPay\DTO\Response\ThreeDs; -use Invertus\SaferPay\DTO\Response\Transaction; if (!defined('_PS_VERSION_')) { exit; diff --git a/src/Enum/ControllerName.php b/src/Enum/ControllerName.php index 47eeea74b..faed5e1e2 100755 --- a/src/Enum/ControllerName.php +++ b/src/Enum/ControllerName.php @@ -44,4 +44,4 @@ class ControllerName const SUCCESS_IFRAME = 'successIframe'; const VALIDATION = 'validation'; const RETURN_URL = 'return'; -} \ No newline at end of file +} diff --git a/src/Enum/PaymentType.php b/src/Enum/PaymentType.php index 33269ed8c..865d7c52a 100755 --- a/src/Enum/PaymentType.php +++ b/src/Enum/PaymentType.php @@ -32,4 +32,4 @@ class PaymentType const BASIC = 'basic'; const IFRAME = 'iframe'; const HOSTED_IFRAME = 'hosted_iframe'; -} \ No newline at end of file +} diff --git a/src/Factory/ModuleFactory.php b/src/Factory/ModuleFactory.php index ae6abcea4..cc0f09c9e 100755 --- a/src/Factory/ModuleFactory.php +++ b/src/Factory/ModuleFactory.php @@ -39,4 +39,4 @@ public function getModule() { return Module::getInstanceByName('saferpayofficial'); } -} \ No newline at end of file +} diff --git a/src/Install/Installer.php b/src/Install/Installer.php index 476b11a34..a8f5a0d0d 100755 --- a/src/Install/Installer.php +++ b/src/Install/Installer.php @@ -27,9 +27,6 @@ use Context; use Db; use Invertus\SaferPay\Config\SaferPayConfig; -use Invertus\SaferPay\Service\SaferPayLogoCreator; -use Invertus\SaferPay\Service\SaferPayPaymentCreator; -use Invertus\SaferPay\Service\SaferPayRestrictionCreator; use Language; use OrderState; use Tab; diff --git a/src/Install/Uninstaller.php b/src/Install/Uninstaller.php index fa583b19d..71a551022 100755 --- a/src/Install/Uninstaller.php +++ b/src/Install/Uninstaller.php @@ -24,7 +24,6 @@ namespace Invertus\SaferPay\Install; use Configuration; -use Db; use Invertus\SaferPay\Config\SaferPayConfig; use Tab; @@ -52,7 +51,7 @@ public function uninstall() foreach ($this->getCommands() as $tableName => $command) { if (false === \Db::getInstance()->execute($command)) { - $this->errors[] = sprintf($this->module->l('Failed to uninstall database table [%s]' , __CLASS__), $tableName); + $this->errors[] = sprintf($this->module->l('Failed to uninstall database table [%s]', __CLASS__), $tableName); return false; } } diff --git a/src/Presentation/Loader/PaymentFormAssetLoader.php b/src/Presentation/Loader/PaymentFormAssetLoader.php index 521b08208..84f6f12c7 100755 --- a/src/Presentation/Loader/PaymentFormAssetLoader.php +++ b/src/Presentation/Loader/PaymentFormAssetLoader.php @@ -60,7 +60,7 @@ public function register($controller) 'hosted_iframe' => PaymentType::HOSTED_IFRAME, 'iframe' => PaymentType::IFRAME, 'basic' => PaymentType::BASIC, - ] + ], ]); if (method_exists($controller, 'registerJavascript')) { @@ -89,4 +89,4 @@ public function register($controller) } } } -} \ No newline at end of file +} diff --git a/src/Provider/PaymentRedirectionProvider.php b/src/Provider/PaymentRedirectionProvider.php index 51724023b..b2f6f1317 100755 --- a/src/Provider/PaymentRedirectionProvider.php +++ b/src/Provider/PaymentRedirectionProvider.php @@ -23,14 +23,10 @@ namespace Invertus\SaferPay\Provider; -use Configuration; -use Context; use Invertus\SaferPay\Adapter\LegacyContext; use Invertus\SaferPay\Config\SaferPayConfig; use Invertus\SaferPay\Enum\ControllerName; use Invertus\SaferPay\Enum\PaymentType; -use Invertus\SaferPay\Factory\ModuleFactory; -use Invertus\SaferPay\Repository\SaferPayFieldRepository; if (!defined('_PS_VERSION_')) { exit; diff --git a/src/Provider/PaymentRestrictionProvider.php b/src/Provider/PaymentRestrictionProvider.php index 3885d3dc3..f6b17113b 100755 --- a/src/Provider/PaymentRestrictionProvider.php +++ b/src/Provider/PaymentRestrictionProvider.php @@ -49,13 +49,11 @@ class PaymentRestrictionProvider implements PaymentRestrictionProviderInterface */ private $klarnaPaymentRestrictionValidation; - public function __construct - ( + public function __construct( ApplePayPaymentRestrictionValidation $applePayPaymentRestrictionValidation, BasePaymentRestrictionValidation $basePaymentRestrictionValidation, KlarnaPaymentRestrictionValidation $klarnaPaymentRestrictionValidation - ) - { + ) { $this->applePayPaymentRestrictionValidation = $applePayPaymentRestrictionValidation; $this->basePaymentRestrictionValidation = $basePaymentRestrictionValidation; $this->klarnaPaymentRestrictionValidation = $klarnaPaymentRestrictionValidation; @@ -69,7 +67,7 @@ public function getPaymentValidators() return [ $this->applePayPaymentRestrictionValidation, $this->basePaymentRestrictionValidation, - $this->klarnaPaymentRestrictionValidation + $this->klarnaPaymentRestrictionValidation, ]; } } diff --git a/src/Provider/PaymentTypeProvider.php b/src/Provider/PaymentTypeProvider.php index 5ca0331f2..1625c0578 100755 --- a/src/Provider/PaymentTypeProvider.php +++ b/src/Provider/PaymentTypeProvider.php @@ -95,4 +95,4 @@ private function isHostedIframeRedirect($paymentMethod) return true; } -} \ No newline at end of file +} diff --git a/src/Repository/SaferPayFieldRepository.php b/src/Repository/SaferPayFieldRepository.php index 919cc0932..e5dcbcbf1 100755 --- a/src/Repository/SaferPayFieldRepository.php +++ b/src/Repository/SaferPayFieldRepository.php @@ -54,7 +54,7 @@ public function getIdByName($paymentName) public function truncateTable() { - $query = 'TRUNCATE TABLE '. _DB_PREFIX_ .'saferpay_field;'; + $query = 'TRUNCATE TABLE ' . _DB_PREFIX_ . 'saferpay_field;'; return Db::getInstance()->execute($query); } diff --git a/src/Repository/SaferPayPaymentRepository.php b/src/Repository/SaferPayPaymentRepository.php index 0221e46d6..90852ec0a 100755 --- a/src/Repository/SaferPayPaymentRepository.php +++ b/src/Repository/SaferPayPaymentRepository.php @@ -74,7 +74,7 @@ public function getActivePaymentMethods() public function truncateTable() { - $query = 'TRUNCATE TABLE '. _DB_PREFIX_ .'saferpay_payment;'; + $query = 'TRUNCATE TABLE ' . _DB_PREFIX_ . 'saferpay_payment;'; return Db::getInstance()->execute($query); } diff --git a/src/Service/PaymentRestrictionValidation/BasePaymentRestrictionValidation.php b/src/Service/PaymentRestrictionValidation/BasePaymentRestrictionValidation.php index bd3261828..b98b49dc8 100755 --- a/src/Service/PaymentRestrictionValidation/BasePaymentRestrictionValidation.php +++ b/src/Service/PaymentRestrictionValidation/BasePaymentRestrictionValidation.php @@ -23,7 +23,6 @@ namespace Invertus\SaferPay\Service\PaymentRestrictionValidation; -use Currency; use Invertus\SaferPay\Adapter\LegacyContext; use Invertus\SaferPay\Repository\SaferPayPaymentRepository; use Invertus\SaferPay\Repository\SaferPayRestrictionRepository; diff --git a/src/Service/Request/AssertRefundRequestObjectCreator.php b/src/Service/Request/AssertRefundRequestObjectCreator.php index 7da844398..032b3dbd4 100755 --- a/src/Service/Request/AssertRefundRequestObjectCreator.php +++ b/src/Service/Request/AssertRefundRequestObjectCreator.php @@ -24,8 +24,6 @@ namespace Invertus\SaferPay\Service\Request; use Invertus\SaferPay\DTO\Request\AssertRefund\AssertRefundRequest; -use Invertus\SaferPay\Repository\SaferPayOrderRepository; -use SaferPayOrder; if (!defined('_PS_VERSION_')) { exit; diff --git a/src/Service/Request/AssertRequestObjectCreator.php b/src/Service/Request/AssertRequestObjectCreator.php index ea80c70be..5d8dde1f8 100755 --- a/src/Service/Request/AssertRequestObjectCreator.php +++ b/src/Service/Request/AssertRequestObjectCreator.php @@ -24,7 +24,6 @@ namespace Invertus\SaferPay\Service\Request; use Invertus\SaferPay\DTO\Request\Assert\AssertRequest; -use Invertus\SaferPay\DTO\Request\AssertRefund\AssertRefundRequest; use Invertus\SaferPay\Repository\SaferPayOrderRepository; use SaferPayOrder; diff --git a/src/Service/Request/CaptureRequestObjectCreator.php b/src/Service/Request/CaptureRequestObjectCreator.php index e5727fe8a..c9ab5be2c 100755 --- a/src/Service/Request/CaptureRequestObjectCreator.php +++ b/src/Service/Request/CaptureRequestObjectCreator.php @@ -25,7 +25,6 @@ use Cart; use Invertus\SaferPay\DTO\Request\Capture\CaptureRequest; -use Order; if (!defined('_PS_VERSION_')) { exit; diff --git a/src/Service/Request/InitializeRequestObjectCreator.php b/src/Service/Request/InitializeRequestObjectCreator.php index f604b6449..805da6b24 100755 --- a/src/Service/Request/InitializeRequestObjectCreator.php +++ b/src/Service/Request/InitializeRequestObjectCreator.php @@ -65,7 +65,7 @@ public function create( $cartDetails = $cart->getSummaryDetails(); $totalPrice = $cartDetails['total_price'] * SaferPayConfig::AMOUNT_MULTIPLIER_FOR_API; - $totalPrice = (int)(round($totalPrice)); + $totalPrice = (int) (round($totalPrice)); $payment = $this->requestObjectCreator->createPayment($cart, $totalPrice); $payer = new Payer(); $returnUrl = $this->requestObjectCreator->createReturnUrl($returnUrl); diff --git a/src/Service/Request/ObtainPaymentMethodsObjectCreator.php b/src/Service/Request/ObtainPaymentMethodsObjectCreator.php index 12db22b6e..d9fa89f2c 100755 --- a/src/Service/Request/ObtainPaymentMethodsObjectCreator.php +++ b/src/Service/Request/ObtainPaymentMethodsObjectCreator.php @@ -26,7 +26,6 @@ use Invertus\SaferPay\Config\SaferPayConfig; use Configuration; use Invertus\SaferPay\DTO\Request\ObtainPaymentMethods\ObtainPaymentMethodsRequest; -use Invertus\SaferPay\DTO\Request\RequestHeader; if (!defined('_PS_VERSION_')) { exit; diff --git a/src/Service/SaferPayInitialize.php b/src/Service/SaferPayInitialize.php index 8d1f92b82..bf6368d79 100755 --- a/src/Service/SaferPayInitialize.php +++ b/src/Service/SaferPayInitialize.php @@ -92,7 +92,7 @@ public function initialize( 'moduleId' => $this->module->id, 'selectedCard' => $selectedCard, 'isBusinessLicence' => $isBusinessLicence, - 'fieldToken' => $fieldToken + 'fieldToken' => $fieldToken, ], true ); diff --git a/src/Service/SaferPayMailService.php b/src/Service/SaferPayMailService.php index 94e686778..978a79164 100755 --- a/src/Service/SaferPayMailService.php +++ b/src/Service/SaferPayMailService.php @@ -73,12 +73,14 @@ public function sendOrderConfMail(Order $order, $orderStateId) Mail::l('Order confirmation', (int) $order->id_lang), $data, $customer->email, - implode(' ', [$customer->firstname, $customer->lastname]), null, null, $fileAttachment, - null, _PS_MAIL_DIR_, false, (int) $order->id_shop + null, + _PS_MAIL_DIR_, + false, + (int) $order->id_shop ); } @@ -348,7 +350,13 @@ private function getCartRuleList(Order $order, $orderStateId) $params, $customer->email, implode(' ', [$customer->firstname, $customer->lastname]), - null, null, null, null, _PS_MAIL_DIR_, false, (int) $order->id_shop + null, + null, + null, + null, + _PS_MAIL_DIR_, + false, + (int) $order->id_shop ); } diff --git a/src/Service/SaferPayObtainPaymentMethods.php b/src/Service/SaferPayObtainPaymentMethods.php index 21bf77e4f..c0635d25e 100755 --- a/src/Service/SaferPayObtainPaymentMethods.php +++ b/src/Service/SaferPayObtainPaymentMethods.php @@ -66,7 +66,7 @@ public function obtainPaymentMethods() $paymentMethods[$paymentNotation] = [ 'paymentMethod' => $paymentNotation, 'logoUrl' => $paymentMethodObject->LogoUrl, - 'currencies' => $paymentMethodObject->Currencies + 'currencies' => $paymentMethodObject->Currencies, ]; } } @@ -76,7 +76,7 @@ public function obtainPaymentMethods() $paymentMethods[$wallet->WalletName] = [ 'paymentMethod' => $wallet->WalletName, 'logoUrl' => $wallet->LogoUrl, - 'currencies' => $paymentMethodObject->Currencies + 'currencies' => $paymentMethodObject->Currencies, ]; } } diff --git a/src/Service/SaferPayOrderStatusService.php b/src/Service/SaferPayOrderStatusService.php index 4790ebd6d..b31220963 100755 --- a/src/Service/SaferPayOrderStatusService.php +++ b/src/Service/SaferPayOrderStatusService.php @@ -158,7 +158,7 @@ public function capture(Order $order, $refundedAmount = 0, $isRefund = false) $cart = new Cart($order->id_cart); $transactionId = $saferPayOrder->transaction_id; $totalPrice = $order->total_paid_tax_incl * SaferPayConfig::AMOUNT_MULTIPLIER_FOR_API; - $totalPrice = (int)(round($totalPrice)); + $totalPrice = (int) (round($totalPrice)); if ($isRefund) { $transactionId = $saferPayOrder->refund_id; $totalPrice = $refundedAmount; @@ -177,7 +177,7 @@ public function capture(Order $order, $refundedAmount = 0, $isRefund = false) if ($isRefund) { $saferPayAssert->refunded_amount += $refundedAmount; $saferPayAssert->update(); - if ((int)$saferPayAssert->refunded_amount === (int)$saferPayAssert->amount) { + if ((int) $saferPayAssert->refunded_amount === (int) $saferPayAssert->amount) { $saferPayOrder->refunded = 1; $saferPayOrder->update(); $order->setCurrentState(_SAFERPAY_PAYMENT_REFUND_); @@ -222,7 +222,7 @@ public function refund(Order $order, $refundedAmount) $saferPayAssert = new SaferPayAssert($assertId); $refundAmount = $refundedAmount * SaferPayConfig::AMOUNT_MULTIPLIER_FOR_API; - $refundAmount = (int)(round($refundAmount)); + $refundAmount = (int) (round($refundAmount)); $isRefundValid = ($saferPayAssert->amount >= $saferPayAssert->refunded_amount + $refundAmount); if (!$isRefundValid) { @@ -269,7 +269,7 @@ public function refund(Order $order, $refundedAmount) if ($refundResponse->Transaction->Status === SaferPayConfig::TRANSACTION_STATUS_CAPTURED) { $saferPayAssert->refunded_amount += $refundAmount; $saferPayAssert->update(); - if ((int)$saferPayAssert->refunded_amount === (int)$saferPayAssert->amount) { + if ((int) $saferPayAssert->refunded_amount === (int) $saferPayAssert->amount) { $saferPayOrder->refunded = 1; $saferPayOrder->update(); $order->setCurrentState(_SAFERPAY_PAYMENT_REFUND_); diff --git a/src/Service/SaferPayPaymentNotation.php b/src/Service/SaferPayPaymentNotation.php index 5e80e551e..e9b12d33c 100755 --- a/src/Service/SaferPayPaymentNotation.php +++ b/src/Service/SaferPayPaymentNotation.php @@ -35,7 +35,7 @@ class SaferPayPaymentNotation 'BONUS' => 'BonusCard', 'DIRECTDEBIT' => 'Lastschrift', 'POSTFINANCE' => 'PostEFinance', - 'MAESTRO' => 'Maestro-Intl.' + 'MAESTRO' => 'Maestro-Intl.', ]; public function getForDisplay($payment) diff --git a/src/Service/SaferPayRefreshPaymentsService.php b/src/Service/SaferPayRefreshPaymentsService.php index 9ee994e07..4940f74be 100755 --- a/src/Service/SaferPayRefreshPaymentsService.php +++ b/src/Service/SaferPayRefreshPaymentsService.php @@ -23,7 +23,6 @@ namespace Invertus\SaferPay\Service; -use Invertus\SaferPay\Config\SaferPayConfig; use Invertus\SaferPay\Exception\Api\SaferPayApiException; use Exception; use Invertus\SaferPay\Repository\SaferPayFieldRepository; @@ -83,17 +82,17 @@ public function refreshPayments() $this->fieldRepository->truncateTable(); foreach ($paymentsFromAPI as $payment) { - $paymentActive = (isset($paymentsInfo[$payment]['active'])) ? (int)$paymentsInfo[$payment]['active'] : 0; - $fieldActive = (isset($paymentsInfo[$payment]['field'])) ? (int)$paymentsInfo[$payment]['field'] : 0; + $paymentActive = (isset($paymentsInfo[$payment]['active'])) ? (int) $paymentsInfo[$payment]['active'] : 0; + $fieldActive = (isset($paymentsInfo[$payment]['field'])) ? (int) $paymentsInfo[$payment]['field'] : 0; $this->paymentRepository->insertPayment([ 'name' => $payment, - 'active' => $paymentActive + 'active' => $paymentActive, ]); $this->fieldRepository->insertField([ 'name' => $payment, - 'active' => $fieldActive + 'active' => $fieldActive, ]); } } diff --git a/src/ServiceProvider/BaseServiceProvider.php b/src/ServiceProvider/BaseServiceProvider.php index 457266a10..fb547e645 100755 --- a/src/ServiceProvider/BaseServiceProvider.php +++ b/src/ServiceProvider/BaseServiceProvider.php @@ -65,4 +65,4 @@ public function getService($className, $service) return $service; } -} \ No newline at end of file +} diff --git a/src/ServiceProvider/LeagueServiceContainerProvider.php b/src/ServiceProvider/LeagueServiceContainerProvider.php index 502f85ee4..8b526b97a 100755 --- a/src/ServiceProvider/LeagueServiceContainerProvider.php +++ b/src/ServiceProvider/LeagueServiceContainerProvider.php @@ -54,4 +54,4 @@ public function extend($id, $concrete = null) return $this; } -} \ No newline at end of file +} diff --git a/src/ServiceProvider/ServiceContainerProviderInterface.php b/src/ServiceProvider/ServiceContainerProviderInterface.php index 26e11698d..986804c91 100755 --- a/src/ServiceProvider/ServiceContainerProviderInterface.php +++ b/src/ServiceProvider/ServiceContainerProviderInterface.php @@ -35,4 +35,4 @@ public function getService($serviceName); * @return mixed */ public function extend($id, $concrete = null); -} \ No newline at end of file +} diff --git a/tests/Unit/Service/SaferPayPaymentNotationTest.php b/tests/Unit/Service/SaferPayPaymentNotationTest.php index 3a7bdc14f..277a3b2ce 100755 --- a/tests/Unit/Service/SaferPayPaymentNotationTest.php +++ b/tests/Unit/Service/SaferPayPaymentNotationTest.php @@ -23,7 +23,6 @@ namespace Invertus\SaferPay\Tests\Unit\Service; -use Invertus\SaferPay\Service\SaferPayPaymentNotation; use Invertus\SaferPay\Tests\Unit\Tools\UnitTestCase; class SaferPayPaymentNotationTest extends UnitTestCase @@ -63,5 +62,4 @@ public function getPaymentMethodForDisplayDataProvider() ['paymentMethod' => 'AMEX', 'expected' => 'AmericanExpress'], ]; } - }