From 6447a6f628b02218f6c050bfb2bc06d83838f39d Mon Sep 17 00:00:00 2001 From: Zenit Shkreli <69572953+zenit2001@users.noreply.github.com> Date: Mon, 12 Aug 2024 10:13:17 +0200 Subject: [PATCH] Remove conditional cardholdername logic (#1137) * fix: removing conditional cardholder name logic and metadata as it is not required anymore * chore: updated the unit test --- .../meta/system-objecttype-extensions.xml | 8 -------- .../cartridge/client/default/js/adyenCheckout.js | 4 ---- .../checkout/billing/adyenComponentForm.isml | 1 - .../adyenSettings/settingCards/cardSettings.isml | 14 -------------- .../cartridge/adyen/utils/adyenConfigs.js | 4 ---- .../__tests__/__snapshots__/begin.test.js.snap | 2 -- .../controllers/middlewares/checkout/begin.js | 2 -- 7 files changed, 35 deletions(-) diff --git a/metadata/site_import/meta/system-objecttype-extensions.xml b/metadata/site_import/meta/system-objecttype-extensions.xml index 3d08ae711..c8614e6e1 100644 --- a/metadata/site_import/meta/system-objecttype-extensions.xml +++ b/metadata/site_import/meta/system-objecttype-extensions.xml @@ -407,13 +407,6 @@ false true - - Show input field for card holder name - boolean - false - false - true - Level 2/3 Data Authorisation Enabled boolean @@ -704,7 +697,6 @@ - diff --git a/src/cartridges/app_adyen_SFRA/cartridge/client/default/js/adyenCheckout.js b/src/cartridges/app_adyen_SFRA/cartridge/client/default/js/adyenCheckout.js index 7b867e691..d571b2101 100644 --- a/src/cartridges/app_adyen_SFRA/cartridge/client/default/js/adyenCheckout.js +++ b/src/cartridges/app_adyen_SFRA/cartridge/client/default/js/adyenCheckout.js @@ -31,10 +31,6 @@ $('#dwfrm_billing').submit(function apiRequest(e) { }); setCheckoutConfiguration(); -if (window.cardholderNameBool !== 'null') { - store.checkoutConfiguration.paymentMethodsConfiguration.card.hasHolderName = true; - store.checkoutConfiguration.paymentMethodsConfiguration.card.holderNameRequired = true; -} if ( window.googleMerchantID !== 'null' && diff --git a/src/cartridges/app_adyen_SFRA/cartridge/templates/default/checkout/billing/adyenComponentForm.isml b/src/cartridges/app_adyen_SFRA/cartridge/templates/default/checkout/billing/adyenComponentForm.isml index 5a27ed48f..b0e84e55c 100644 --- a/src/cartridges/app_adyen_SFRA/cartridge/templates/default/checkout/billing/adyenComponentForm.isml +++ b/src/cartridges/app_adyen_SFRA/cartridge/templates/default/checkout/billing/adyenComponentForm.isml @@ -58,7 +58,6 @@