From f752dddedf4777d0b00cec550f3d7b845be64e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Mon, 28 Oct 2024 16:40:28 +0100 Subject: [PATCH] MAG2-319 - Changed intent in javascript URL --- Block/Paypal/ExpressButtonV2.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Block/Paypal/ExpressButtonV2.php b/Block/Paypal/ExpressButtonV2.php index 10b1ae8f..0bfb029b 100644 --- a/Block/Paypal/ExpressButtonV2.php +++ b/Block/Paypal/ExpressButtonV2.php @@ -165,13 +165,7 @@ protected function showBNPLButton() */ protected function getIntent() { - $oMethodInstance = $this->getMethodInstance(); - - $sIntent = "authorize"; // authorize = preauthorize - if ($oMethodInstance && $oMethodInstance->getAuthorizationMode() == PayoneConfig::REQUEST_TYPE_AUTHORIZATION) { - $sIntent = "capture"; // capture = authorize - } - return $sIntent; + return "authorize"; // authorize = preauthorize // capture = authorize but Payone said to always use authorize } /**