From 464eb3b7a372aa19acb55a86b107d3b83b6c66e0 Mon Sep 17 00:00:00 2001 From: smueller Date: Tue, 20 Feb 2024 08:22:23 +0100 Subject: [PATCH 1/3] SW-448: fixed automatic form filling for new control center * re-added exit after json output and added ignore for the automatic shopware review --- Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php b/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php index 4a171071..c1fd145a 100755 --- a/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php +++ b/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php @@ -961,7 +961,6 @@ public function ajaxgeneralconfigAction() public function ajaxgetGeneralConfigAction() { - $data = array(); $this->Front()->Plugins()->Json()->setRenderer(true); $paymentid = $this->Request()->getParam('paymentid'); @@ -969,6 +968,7 @@ public function ajaxgetGeneralConfigAction() $data['status'] = 'success'; $encoded = json_encode($data); echo $encoded; + exit(0); /** @phpstan-ignore-line */ } public function ajaxriskcheckAction() From ea44ac695618d3a22ce3de0092e1cce3c6b46f87 Mon Sep 17 00:00:00 2001 From: Stefan Mueller Date: Wed, 13 Mar 2024 11:28:45 +0100 Subject: [PATCH 2/3] SW-447: fixed regexp patterns and applepay file uploads in new control center --- .../Controllers/Backend/FcPayone.php | 2 + .../backend/fc_payone/ajaxaddresscheck.tpl | 42 +++++++++--------- .../Views/backend/fc_payone/ajaxconfig.tpl | 2 +- .../backend/fc_payone/ajaxcreditcard.tpl | 12 ++--- .../Views/backend/fc_payone/ajaxdebit.tpl | 18 ++++---- .../Views/backend/fc_payone/ajaxfinance.tpl | 20 ++++----- .../backend/fc_payone/ajaxgeneralconfig.tpl | 44 +++++++++---------- .../backend/fc_payone/ajaxonlinetransfer.tpl | 10 ++--- .../fc_payone/ajaxpaymentstatusconfig.tpl | 42 +++++++++--------- .../Views/backend/fc_payone/ajaxriskcheck.tpl | 28 ++++++------ .../fc_payone/ajaxtransactionstatusconfig.tpl | 26 +++++------ .../Views/backend/fc_payone/ajaxwallet.tpl | 12 ++--- 12 files changed, 130 insertions(+), 128 deletions(-) diff --git a/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php b/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php index c1fd145a..7fe9e99b 100755 --- a/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php +++ b/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php @@ -1175,6 +1175,7 @@ public function ajaxSaveApplepayCertAction() } echo $response; + exit(0); /** @phpstan-ignore-line */ } public function ajaxSaveApplepayKeyAction() @@ -1211,6 +1212,7 @@ public function ajaxSaveApplepayKeyAction() } echo $response; + exit(0); /** @phpstan-ignore-line */ } public function updateSnippet($options) diff --git a/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxaddresscheck.tpl b/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxaddresscheck.tpl index e9a7c050..2ae00843 100755 --- a/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxaddresscheck.tpl +++ b/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxaddresscheck.tpl @@ -39,7 +39,7 @@
- @@ -52,7 +52,7 @@
- @@ -65,7 +65,7 @@
- @@ -81,7 +81,7 @@
- + (success)
@@ -91,7 +91,7 @@
- @@ -107,7 +107,7 @@
- + (success)
@@ -117,7 +117,7 @@
- @@ -131,7 +131,7 @@
- @@ -176,7 +176,7 @@
- + (success)
@@ -186,7 +186,7 @@
- @@ -200,7 +200,7 @@
- @@ -214,7 +214,7 @@
- @@ -228,7 +228,7 @@
- @@ -242,7 +242,7 @@
- @@ -256,7 +256,7 @@
- @@ -270,7 +270,7 @@
- @@ -284,7 +284,7 @@
- @@ -298,7 +298,7 @@
- @@ -312,7 +312,7 @@
- @@ -326,7 +326,7 @@
- @@ -340,7 +340,7 @@
- diff --git a/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxconfig.tpl b/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxconfig.tpl index 2474670d..5f98205d 100755 --- a/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxconfig.tpl +++ b/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxconfig.tpl @@ -55,7 +55,7 @@
- + (success)
diff --git a/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxcreditcard.tpl b/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxcreditcard.tpl index b6913c11..80465d88 100755 --- a/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxcreditcard.tpl +++ b/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxcreditcard.tpl @@ -38,7 +38,7 @@
- + (success)
@@ -48,7 +48,7 @@
- (success) @@ -89,7 +89,7 @@
- + (success)
@@ -99,7 +99,7 @@
- + (success)
@@ -109,7 +109,7 @@
- + (success)
@@ -119,7 +119,7 @@
- diff --git a/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxdebit.tpl b/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxdebit.tpl index 95ff56e3..aa47759f 100755 --- a/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxdebit.tpl +++ b/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxdebit.tpl @@ -38,7 +38,7 @@
- + (success)
@@ -48,7 +48,7 @@
- (success) @@ -89,7 +89,7 @@
- + (success)
@@ -99,7 +99,7 @@
- + (success)
@@ -109,7 +109,7 @@
- + (success)
@@ -119,7 +119,7 @@
- @@ -132,7 +132,7 @@
- @@ -145,7 +145,7 @@
- @@ -158,7 +158,7 @@
- diff --git a/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxfinance.tpl b/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxfinance.tpl index 06d82fb6..e4ecc9df 100755 --- a/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxfinance.tpl +++ b/Frontend/MoptPaymentPayone/Views/backend/fc_payone/ajaxfinance.tpl @@ -38,7 +38,7 @@
- + (success)
@@ -48,7 +48,7 @@
- (success) @@ -89,7 +89,7 @@
- + (success)
@@ -99,7 +99,7 @@
- + (success)
@@ -108,7 +108,7 @@