From a650fb2b86f26daf72f6a2dd69db8d6cde68a7fe Mon Sep 17 00:00:00 2001 From: MarijusCoding Date: Mon, 30 Sep 2024 11:34:11 +0300 Subject: [PATCH] [SV-35] init --- .../admin/AdminSaferPayOfficialSettingsController.php | 7 +++++++ src/Config/SaferPayConfig.php | 1 + 2 files changed, 8 insertions(+) diff --git a/controllers/admin/AdminSaferPayOfficialSettingsController.php b/controllers/admin/AdminSaferPayOfficialSettingsController.php index fdd33062..3b25d8e8 100755 --- a/controllers/admin/AdminSaferPayOfficialSettingsController.php +++ b/controllers/admin/AdminSaferPayOfficialSettingsController.php @@ -402,6 +402,13 @@ private function displayConfigurationSettings() 'desc' => 'This description is visible in payment page also in payment confirmation email', 'class' => 'fixed-width-xxl' ], + SaferPayConfig::SAFERPAY_DEBUG_MODE => [ + 'title' => $this->module->l('Debug mode', self::FILE_NAME), + 'validation' => 'isBool', + 'cast' => 'intval', + 'type' => 'bool', + 'desc' => 'Enable debug mode to see more information in logs', + ], ], 'buttons' => [ 'save_and_connect' => [ diff --git a/src/Config/SaferPayConfig.php b/src/Config/SaferPayConfig.php index c2c31af4..e56fc101 100755 --- a/src/Config/SaferPayConfig.php +++ b/src/Config/SaferPayConfig.php @@ -264,6 +264,7 @@ class SaferPayConfig const PAYMENT_BEHAVIOR_WITHOUT_3D_AUTHORIZE = 1; const SAFERPAY_CARDFORM_HOLDERNAME_REQUIRENCE = 'MANDATORY'; + const SAFERPAY_DEBUG_MODE = 'SAFERPAY_DEBUG_MODE'; public static function supportsOrderCapture(string $paymentMethod) {