From 69618b8db548287a519b57ef4343626cdb3c1528 Mon Sep 17 00:00:00 2001 From: MarkusGaertner Date: Wed, 15 Nov 2023 14:38:08 +0100 Subject: [PATCH] =?UTF-8?q?Ausnahmebedingung=20f=C3=BCr=20Amazon=20Pay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/component/oeusercomponent.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/application/component/oeusercomponent.php b/application/component/oeusercomponent.php index 50bb53e..103a186 100644 --- a/application/component/oeusercomponent.php +++ b/application/component/oeusercomponent.php @@ -30,6 +30,16 @@ class oeUserComponent extends oeUserComponent_parent public function createUser() { + ob_start(); + debug_print_backtrace(); + $trace = ob_get_contents(); + ob_end_clean(); + + if(str_contains($trace, 'initAmazonPayExpress')) + { + return parent::createUser(); + } + if(\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('fnc') == 'approveOrder') { return parent::createUser();