From 4301675d0a77ec89893cdcbdf1f24fc2b8a02667 Mon Sep 17 00:00:00 2001 From: Dennis Garding Date: Wed, 21 Jun 2023 11:06:17 +0200 Subject: [PATCH] PT-13108 - Pr changes --- .../AbstractPaymentSourceValueHandler.php | 2 +- PayPalBundle/V2/Api/Order/PaymentSource/ExperienceContext.php | 2 +- plugin.xml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Components/Services/OrderBuilder/PaymentSource/PaymentSourceValueHandler/AbstractPaymentSourceValueHandler.php b/Components/Services/OrderBuilder/PaymentSource/PaymentSourceValueHandler/AbstractPaymentSourceValueHandler.php index 263e0635..213d8f69 100644 --- a/Components/Services/OrderBuilder/PaymentSource/PaymentSourceValueHandler/AbstractPaymentSourceValueHandler.php +++ b/Components/Services/OrderBuilder/PaymentSource/PaymentSourceValueHandler/AbstractPaymentSourceValueHandler.php @@ -125,7 +125,7 @@ private function getLandingPage(General $generalSettings) { $currentLandingPage = $generalSettings->getLandingPageType(); - if (!\in_array($currentLandingPage, ExperienceContext::LANDING_PAGES)) { + if (!\in_array($currentLandingPage, ExperienceContext::LANDING_PAGE_TYPES)) { return ExperienceContext::LANDING_PAGE_TYPE_NO_PREFERENCE; } diff --git a/PayPalBundle/V2/Api/Order/PaymentSource/ExperienceContext.php b/PayPalBundle/V2/Api/Order/PaymentSource/ExperienceContext.php index 1c83db53..2f4bf64a 100644 --- a/PayPalBundle/V2/Api/Order/PaymentSource/ExperienceContext.php +++ b/PayPalBundle/V2/Api/Order/PaymentSource/ExperienceContext.php @@ -18,7 +18,7 @@ class ExperienceContext extends PayPalApiStruct const LANDING_PAGE_TYPE_NO_PREFERENCE = 'NO_PREFERENCE'; - const LANDING_PAGES = [ + const LANDING_PAGE_TYPES = [ self::LANDING_PAGE_TYPE_BILLING, self::LANDING_PAGE_TYPE_LOGIN, self::LANDING_PAGE_TYPE_NO_PREFERENCE, diff --git a/plugin.xml b/plugin.xml index 98562c52..95bfe3d4 100644 --- a/plugin.xml +++ b/plugin.xml @@ -14,10 +14,10 @@ - PT-13108 - Setzt Standard-Landingpage, wenn keine ausgewählt wurde; + PT-13108 - Nutzt Standard-Landingpage, wenn die Einstellung nicht korrekt gesetzt wurde; - PT-13108 - Sets default landing page if none is selected; + PT-13108 - Uses default landing page if setting is not set correctly;