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/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/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/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..5a85cc654 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;
@@ -268,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/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/controllers/admin/index.php b/controllers/admin/index.php
index 7e4131254..ee6227264 100755
--- a/controllers/admin/index.php
+++ b/controllers/admin/index.php
@@ -16,35 +16,16 @@
*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');
+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/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 8c7c6699a..b03306371 100755
--- a/controllers/front/hostedIframe.php
+++ b/controllers/front/hostedIframe.php
@@ -16,14 +16,18 @@
*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;
use PrestaShop\PrestaShop\Core\Checkout\TermsAndConditions;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
class SaferPayOfficialHostedIframeModuleFrontController extends ModuleFrontController
{
const FILENAME = 'hostedIframe';
@@ -42,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/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/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/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 dc072ffdd..208aa062c 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;
@@ -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';
@@ -95,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 8c8b0dce0..80e18760e 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';
@@ -75,7 +79,6 @@ public function postProcess()
],
true
));
-
} catch (Exception $e) {
PrestaShopLogger::addLog(
sprintf(
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..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;
@@ -30,6 +29,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/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
new file mode 100644
index 000000000..ee6227264
--- /dev/null
+++ b/cypress/fixtures/index.php
@@ -0,0 +1,31 @@
+
+ *@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('Location: ../');
+exit;
diff --git a/cypress/index.php b/cypress/index.php
new file mode 100644
index 000000000..ee6227264
--- /dev/null
+++ b/cypress/index.php
@@ -0,0 +1,31 @@
+
+ *@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('Location: ../');
+exit;
diff --git a/cypress/integration/01_ps1764.Module.Configure.cy.js b/cypress/integration/01_ps1764.Module.Configure.cy.js
index 74e26b7f3..b7313cb4c 100755
--- a/cypress/integration/01_ps1764.Module.Configure.cy.js
+++ b/cypress/integration/01_ps1764.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_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..ee6227264
--- /dev/null
+++ b/cypress/integration/index.php
@@ -0,0 +1,31 @@
+
+ *@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('Location: ../');
+exit;
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/cypress/plugins/index.php b/cypress/plugins/index.php
new file mode 100644
index 000000000..ee6227264
--- /dev/null
+++ b/cypress/plugins/index.php
@@ -0,0 +1,31 @@
+
+ *@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('Location: ../');
+exit;
diff --git a/cypress/support/commands.js b/cypress/support/commands.js
index de8c9adbf..e26911591 100755
--- a/cypress/support/commands.js
+++ b/cypress/support/commands.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 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..ee6227264
--- /dev/null
+++ b/cypress/support/index.php
@@ -0,0 +1,31 @@
+
+ *@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('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/package.json b/package.json
index f3a402a38..6f068d999 100755
--- a/package.json
+++ b/package.json
@@ -1,6 +1,8 @@
{
- "devDependencies": {
- "cypress": "^9.6.1",
- "cypress-iframe": "^1.0.1"
- }
-}
+ "devDependencies": {
+ "cypress": "^9.6.1",
+ "cypress-iframe": "^1.0.1"
+ },
+ "author": "PrestaShop",
+ "license": "AFL-3.0"
+}
\ No newline at end of file
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/saferpayofficial.php b/saferpayofficial.php
index 05122c712..a3d5fb1ea 100755
--- a/saferpayofficial.php
+++ b/saferpayofficial.php
@@ -1,5 +1,4 @@
- * @copyright SIX Payment Services
- * @license SIX Payment Services
+ *@author INVERTUS UAB www.invertus.eu
+ *@copyright SIX Payment Services
+ *@license SIX Payment Services
*/
+
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
class SaferPayOfficial extends PaymentModule
{
const ADMIN_SAFERPAY_MODULE_CONTROLLER = 'AdminSaferPayOfficialModule';
@@ -36,7 +40,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';
@@ -227,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)
@@ -454,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']),
]
);
@@ -567,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);
}
}
@@ -648,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/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/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/ApiRequest.php b/src/Api/ApiRequest.php
index d6651a53c..14e4fed5c 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
{
/**
@@ -102,7 +106,7 @@ private function getHeaders()
'Content-Type' => 'application/json',
'Saferpay-ApiVersion' => SaferPayConfig::API_VERSION,
'Saferpay-RequestId' => 'false',
- 'Authorization' => "Basic $credentials"
+ 'Authorization' => "Basic $credentials",
];
}
@@ -113,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 2848f39f7..58e1030ed 100644
--- a/src/Api/Enum/TransactionStatus.php
+++ b/src/Api/Enum/TransactionStatus.php
@@ -23,10 +23,14 @@
namespace Invertus\SaferPay\Api\Enum;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
class TransactionStatus
{
const AUTHORIZED = 'AUTHORIZED';
const CANCELED = 'CANCELED';
const CAPTURED = 'CAPTURED';
const PENDING = 'PENDING';
-}
\ No newline at end of file
+}
diff --git a/src/Api/Enum/index.php b/src/Api/Enum/index.php
new file mode 100644
index 000000000..ee6227264
--- /dev/null
+++ b/src/Api/Enum/index.php
@@ -0,0 +1,31 @@
+
+ *@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('Location: ../');
+exit;
diff --git a/src/Api/Request/AssertRefundService.php b/src/Api/Request/AssertRefundService.php
index 4daad830f..f626f1ab6 100755
--- a/src/Api/Request/AssertRefundService.php
+++ b/src/Api/Request/AssertRefundService.php
@@ -25,16 +25,14 @@
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;
+}
class AssertRefundService
{
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..f6f791ba5 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';
@@ -48,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/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..3cfb17960 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';
@@ -48,7 +52,7 @@ public function refund(RefundRequest $refundRequest)
{
return $this->apiRequest->post(
self::REFUND_API,
- $refundRequest->getAsArray()
+ $refundRequest->getAsArray()
);
}
}
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/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/Builder/index.php b/src/Builder/index.php
index 7e4131254..ee6227264 100755
--- a/src/Builder/index.php
+++ b/src/Builder/index.php
@@ -16,35 +16,16 @@
*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');
+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/SaferPayConfig.php b/src/Config/SaferPayConfig.php
index 071aac2eb..3aef29da5 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/';
@@ -134,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/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/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/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/CanSendOrderConfirmationEmail.php b/src/Core/Order/Verification/CanSendOrderConfirmationEmail.php
index 11166f7b5..a83daeb72 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)
@@ -56,4 +60,4 @@ private function isOrderStatusValid($orderStatusId)
return false;
}
-}
\ No newline at end of file
+}
diff --git a/src/Core/Order/Verification/index.php b/src/Core/Order/Verification/index.php
new file mode 100644
index 000000000..ee6227264
--- /dev/null
+++ b/src/Core/Order/Verification/index.php
@@ -0,0 +1,31 @@
+
+ *@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('Location: ../');
+exit;
diff --git a/src/Core/Order/index.php b/src/Core/Order/index.php
new file mode 100644
index 000000000..ee6227264
--- /dev/null
+++ b/src/Core/Order/index.php
@@ -0,0 +1,31 @@
+
+ *@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('Location: ../');
+exit;
diff --git a/src/Core/index.php b/src/Core/index.php
new file mode 100644
index 000000000..ee6227264
--- /dev/null
+++ b/src/Core/index.php
@@ -0,0 +1,31 @@
+
+ *@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('Location: ../');
+exit;
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/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/AssertRefundRequest.php b/src/DTO/Request/AssertRefund/AssertRefundRequest.php
index b125a31b1..80a2b8e96 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
{
@@ -57,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/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/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/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/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/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/CaptureRequest.php b/src/DTO/Request/Capture/CaptureRequest.php
index 11ecb3dae..6d3c6da86 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
{
/**
@@ -69,7 +73,7 @@ public function getAsArray()
],
'TransactionReference' => [
'TransactionId' => $this->transactionId,
- ]
+ ],
];
return $return;
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/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..9b10f0157 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
{
@@ -119,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/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/ObtainPaymentMethodsRequest.php b/src/DTO/Request/ObtainPaymentMethods/ObtainPaymentMethodsRequest.php
index 45168b6da..12a53f83f 100755
--- a/src/DTO/Request/ObtainPaymentMethods/ObtainPaymentMethodsRequest.php
+++ b/src/DTO/Request/ObtainPaymentMethods/ObtainPaymentMethodsRequest.php
@@ -23,9 +23,12 @@
namespace Invertus\SaferPay\DTO\Request\ObtainPaymentMethods;
-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/ObtainPaymentMethods/index.php b/src/DTO/Request/ObtainPaymentMethods/index.php
new file mode 100644
index 000000000..ee6227264
--- /dev/null
+++ b/src/DTO/Request/ObtainPaymentMethods/index.php
@@ -0,0 +1,31 @@
+
+ *@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('Location: ../');
+exit;
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..864c5e1f8 100755
--- a/src/DTO/Request/Refund/RefundRequest.php
+++ b/src/DTO/Request/Refund/RefundRequest.php
@@ -23,13 +23,16 @@
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;
use Invertus\SaferPay\DTO\Request\RequestHeader;
use Configuration;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
class RefundRequest
{
@@ -69,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(),
@@ -82,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/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/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/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/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/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/AssertRefundBody.php b/src/DTO/Response/AssertRefund/AssertRefundBody.php
index d436a200e..4d0c91658 100755
--- a/src/DTO/Response/AssertRefund/AssertRefundBody.php
+++ b/src/DTO/Response/AssertRefund/AssertRefundBody.php
@@ -23,14 +23,11 @@
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;
+}
class AssertRefundBody
{
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/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/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/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/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/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 886dae21e..3a8948854 100755
--- a/src/DTO/Response/Transaction.php
+++ b/src/DTO/Response/Transaction.php
@@ -16,31 +16,17 @@
*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
- *}
*/
namespace Invertus\SaferPay\DTO\Response;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
class Transaction
{
private $type;
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/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/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/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/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/ControllerName.php b/src/Enum/ControllerName.php
index dc9fe82c4..faed5e1e2 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';
@@ -40,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/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..865d7c52a 100755
--- a/src/Enum/PaymentType.php
+++ b/src/Enum/PaymentType.php
@@ -23,9 +23,13 @@
namespace Invertus\SaferPay\Enum;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
class PaymentType
{
const BASIC = 'basic';
const IFRAME = 'iframe';
const HOSTED_IFRAME = 'hosted_iframe';
-}
\ No newline at end of file
+}
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/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/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/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/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/ModuleFactory.php b/src/Factory/ModuleFactory.php
index 67cd54e89..cc0f09c9e 100755
--- a/src/Factory/ModuleFactory.php
+++ b/src/Factory/ModuleFactory.php
@@ -1,9 +1,35 @@
+ *@copyright SIX Payment Services
+ *@license SIX Payment Services
+ */
+
namespace Invertus\SaferPay\Factory;
use Module;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
class ModuleFactory
{
/**
@@ -13,4 +39,4 @@ public function getModule()
{
return Module::getInstanceByName('saferpayofficial');
}
-}
\ No newline at end of file
+}
diff --git a/src/Factory/index.php b/src/Factory/index.php
new file mode 100644
index 000000000..ee6227264
--- /dev/null
+++ b/src/Factory/index.php
@@ -0,0 +1,31 @@
+
+ *@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('Location: ../');
+exit;
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..a8f5a0d0d 100755
--- a/src/Install/Installer.php
+++ b/src/Install/Installer.php
@@ -27,13 +27,14 @@
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;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
/**
* Class SaferPayInstaller
*/
diff --git a/src/Install/Uninstaller.php b/src/Install/Uninstaller.php
index 5baa68825..71a551022 100755
--- a/src/Install/Uninstaller.php
+++ b/src/Install/Uninstaller.php
@@ -24,10 +24,13 @@
namespace Invertus\SaferPay\Install;
use Configuration;
-use Db;
use Invertus\SaferPay\Config\SaferPayConfig;
use Tab;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
class Uninstaller extends AbstractInstaller
{
private $errors = [];
@@ -48,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/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/PaymentFormAssetLoader.php b/src/Presentation/Loader/PaymentFormAssetLoader.php
index 3b39e8b63..84f6f12c7 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 */
@@ -56,7 +60,7 @@ public function register($controller)
'hosted_iframe' => PaymentType::HOSTED_IFRAME,
'iframe' => PaymentType::IFRAME,
'basic' => PaymentType::BASIC,
- ]
+ ],
]);
if (method_exists($controller, 'registerJavascript')) {
@@ -85,4 +89,4 @@ public function register($controller)
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Presentation/Loader/index.php b/src/Presentation/Loader/index.php
new file mode 100644
index 000000000..ee6227264
--- /dev/null
+++ b/src/Presentation/Loader/index.php
@@ -0,0 +1,31 @@
+
+ *@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('Location: ../');
+exit;
diff --git a/src/Presentation/index.php b/src/Presentation/index.php
new file mode 100644
index 000000000..ee6227264
--- /dev/null
+++ b/src/Presentation/index.php
@@ -0,0 +1,31 @@
+
+ *@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('Location: ../');
+exit;
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/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/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..b2f6f1317 100755
--- a/src/Provider/PaymentRedirectionProvider.php
+++ b/src/Provider/PaymentRedirectionProvider.php
@@ -23,14 +23,14 @@
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;
+}
class PaymentRedirectionProvider
{
diff --git a/src/Provider/PaymentRestrictionProvider.php b/src/Provider/PaymentRestrictionProvider.php
index d17c36b6b..f6b17113b 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
{
/**
@@ -45,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;
@@ -65,7 +67,7 @@ public function getPaymentValidators()
return [
$this->applePayPaymentRestrictionValidation,
$this->basePaymentRestrictionValidation,
- $this->klarnaPaymentRestrictionValidation
+ $this->klarnaPaymentRestrictionValidation,
];
}
}
diff --git a/src/Provider/PaymentRestrictionProviderInterface.php b/src/Provider/PaymentRestrictionProviderInterface.php
index 60d61fb04..1b2a9c0e2 100755
--- a/src/Provider/PaymentRestrictionProviderInterface.php
+++ b/src/Provider/PaymentRestrictionProviderInterface.php
@@ -16,15 +16,19 @@
*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\Provider;
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..1625c0578 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 */
@@ -91,4 +95,4 @@ private function isHostedIframeRedirect($paymentMethod)
return true;
}
-}
\ No newline at end of file
+}
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/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..e5dcbcbf1 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)
@@ -50,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/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..90852ec0a 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)
@@ -70,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/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/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/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 9c701d4e7..d6b31d2be 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;
@@ -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 65dfb141f..035016bac 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;
@@ -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..b98b49dc8 100755
--- a/src/Service/PaymentRestrictionValidation/BasePaymentRestrictionValidation.php
+++ b/src/Service/PaymentRestrictionValidation/BasePaymentRestrictionValidation.php
@@ -23,13 +23,16 @@
namespace Invertus\SaferPay\Service\PaymentRestrictionValidation;
-use Currency;
use Invertus\SaferPay\Adapter\LegacyContext;
use Invertus\SaferPay\Repository\SaferPayPaymentRepository;
use Invertus\SaferPay\Repository\SaferPayRestrictionRepository;
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 1865c5346..89e2be015 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;
@@ -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 8ca84e478..313439f95 100755
--- a/src/Service/PaymentRestrictionValidation/PaymentRestrictionValidationInterface.php
+++ b/src/Service/PaymentRestrictionValidation/PaymentRestrictionValidationInterface.php
@@ -16,13 +16,17 @@
*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;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
interface PaymentRestrictionValidationInterface
{
/**
diff --git a/src/Service/PaymentRestrictionValidation/WlcryptopaymentsPaymentRestrictionValidation.php b/src/Service/PaymentRestrictionValidation/WlcryptopaymentsPaymentRestrictionValidation.php
index 32b3f8447..44878560d 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;
@@ -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/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/AssertRefundRequestObjectCreator.php b/src/Service/Request/AssertRefundRequestObjectCreator.php
index 8704953b6..032b3dbd4 100755
--- a/src/Service/Request/AssertRefundRequestObjectCreator.php
+++ b/src/Service/Request/AssertRefundRequestObjectCreator.php
@@ -24,8 +24,10 @@
namespace Invertus\SaferPay\Service\Request;
use Invertus\SaferPay\DTO\Request\AssertRefund\AssertRefundRequest;
-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..5d8dde1f8 100755
--- a/src/Service/Request/AssertRequestObjectCreator.php
+++ b/src/Service/Request/AssertRequestObjectCreator.php
@@ -24,10 +24,13 @@
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;
+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..c9ab5be2c 100755
--- a/src/Service/Request/CaptureRequestObjectCreator.php
+++ b/src/Service/Request/CaptureRequestObjectCreator.php
@@ -25,7 +25,10 @@
use Cart;
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..805da6b24 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
{
/**
@@ -61,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 36f33e3fd..d9fa89f2c 100755
--- a/src/Service/Request/ObtainPaymentMethodsObjectCreator.php
+++ b/src/Service/Request/ObtainPaymentMethodsObjectCreator.php
@@ -26,7 +26,10 @@
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;
+}
class ObtainPaymentMethodsObjectCreator
{
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/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/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/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/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..bf6368d79 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
{
/**
@@ -88,7 +92,7 @@ public function initialize(
'moduleId' => $this->module->id,
'selectedCard' => $selectedCard,
'isBusinessLicence' => $isBusinessLicence,
- 'fieldToken' => $fieldToken
+ 'fieldToken' => $fieldToken,
],
true
);
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..978a79164 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';
@@ -69,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
);
}
@@ -289,7 +295,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
@@ -344,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 f5802a076..c0635d25e 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;
@@ -62,7 +66,7 @@ public function obtainPaymentMethods()
$paymentMethods[$paymentNotation] = [
'paymentMethod' => $paymentNotation,
'logoUrl' => $paymentMethodObject->LogoUrl,
- 'currencies' => $paymentMethodObject->Currencies
+ 'currencies' => $paymentMethodObject->Currencies,
];
}
}
@@ -72,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 b3acef27b..b31220963 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;
@@ -44,6 +44,10 @@
use SaferPayOfficial;
use SaferPayOrder;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
class SaferPayOrderStatusService
{
/**
@@ -154,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;
@@ -173,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_);
@@ -218,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) {
@@ -265,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/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..e9b12d33c 100755
--- a/src/Service/SaferPayPaymentNotation.php
+++ b/src/Service/SaferPayPaymentNotation.php
@@ -23,16 +23,19 @@
namespace Invertus\SaferPay\Service;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
class SaferPayPaymentNotation
{
-
const PAYMENTS = [
'AMEX' => 'AmericanExpress',
'DINERS' => 'DinersClub',
'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 e655f3191..4940f74be 100755
--- a/src/Service/SaferPayRefreshPaymentsService.php
+++ b/src/Service/SaferPayRefreshPaymentsService.php
@@ -23,13 +23,16 @@
namespace Invertus\SaferPay\Service;
-use Invertus\SaferPay\Config\SaferPayConfig;
use Invertus\SaferPay\Exception\Api\SaferPayApiException;
use Exception;
use Invertus\SaferPay\Repository\SaferPayFieldRepository;
use Invertus\SaferPay\Repository\SaferPayPaymentRepository;
use Invertus\SaferPay\Repository\SaferPayRestrictionRepository;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
class SaferPayRefreshPaymentsService
{
const ALL_COUNTRIES_ENABLED = "1";
@@ -79,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/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/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/TranslatorInterface.php b/src/Service/TranslatorInterface.php
index 347cc9880..4d8942334 100755
--- a/src/Service/TranslatorInterface.php
+++ b/src/Service/TranslatorInterface.php
@@ -16,13 +16,17 @@
*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;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
/**
* TranslatorInterface.
*
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/BaseServiceProvider.php b/src/ServiceProvider/BaseServiceProvider.php
index f1788bc9a..fb547e645 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;
@@ -26,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
*/
@@ -58,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 e208ae228..8b526b97a 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;
@@ -23,6 +26,10 @@
use League\Container\Container;
use League\Container\ReflectionContainer;
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
class LeagueServiceContainerProvider implements ServiceContainerProviderInterface
{
private $extendedServices = [];
@@ -47,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 807f6cbd3..986804c91 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
{
/**
@@ -31,4 +35,4 @@ public function getService($serviceName);
* @return mixed
*/
public function extend($id, $concrete = null);
-}
\ No newline at end of file
+}
diff --git a/src/ServiceProvider/index.php b/src/ServiceProvider/index.php
new file mode 100644
index 000000000..ee6227264
--- /dev/null
+++ b/src/ServiceProvider/index.php
@@ -0,0 +1,31 @@
+
+ *@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('Location: ../');
+exit;
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
{
/**
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/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'],
];
}
-
}
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/PriceUtilityTest.php b/tests/Unit/Utility/PriceUtilityTest.php
index cb454f09f..6a6737fb1 100755
--- a/tests/Unit/Utility/PriceUtilityTest.php
+++ b/tests/Unit/Utility/PriceUtilityTest.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\Tests\Unit\Utility;
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 88355f610..ee6227264 100755
--- a/tests/seed/database/index.php
+++ b/tests/seed/database/index.php
@@ -1,5 +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/tests/seed/index.php b/tests/seed/index.php
index 88355f610..ee6227264 100755
--- a/tests/seed/index.php
+++ b/tests/seed/index.php
@@ -1,5 +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/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..ee6227264 100755
--- a/tests/seed/settings1764/index.php
+++ b/tests/seed/settings1764/index.php
@@ -1,5 +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/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..ee6227264 100755
--- a/tests/seed/settings1770/index.php
+++ b/tests/seed/settings1770/index.php
@@ -1,5 +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/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..ee6227264 100755
--- a/tests/seed/settings1784/index.php
+++ b/tests/seed/settings1784/index.php
@@ -1,5 +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/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..ee6227264 100755
--- a/tests/seed/settings1786/index.php
+++ b/tests/seed/settings1786/index.php
@@ -1,5 +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/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..ee6227264
--- /dev/null
+++ b/translations/index.php
@@ -0,0 +1,31 @@
+
+ *@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('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/upgrade/install-1.0.13.php b/upgrade/install-1.0.13.php
index 81c56ab56..f073c96f0 100755
--- a/upgrade/install-1.0.13.php
+++ b/upgrade/install-1.0.13.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\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/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/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/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_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/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/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/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/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/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%;
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/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 e33fa241b..ee6227264 100755
--- a/views/templates/front/hosted-templates/index.php
+++ b/views/templates/front/hosted-templates/index.php
@@ -1,29 +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');
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;