From d25432de3b33946b88e93ddcfd01f5e898510a15 Mon Sep 17 00:00:00 2001 From: Bas van Poppel Date: Wed, 11 Aug 2021 10:11:57 +0200 Subject: [PATCH] Fix check for place-order-recaptcha component within place-order-recaptcha-container --- ReCaptchaCheckout/Block/LayoutProcessor/Checkout/Onepage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ReCaptchaCheckout/Block/LayoutProcessor/Checkout/Onepage.php b/ReCaptchaCheckout/Block/LayoutProcessor/Checkout/Onepage.php index 390bf712..fac0c3d4 100644 --- a/ReCaptchaCheckout/Block/LayoutProcessor/Checkout/Onepage.php +++ b/ReCaptchaCheckout/Block/LayoutProcessor/Checkout/Onepage.php @@ -79,7 +79,8 @@ public function process($jsLayout) ['place-order-recaptcha']['settings'] = $this->captchaUiConfigResolver->get($key); } else { if (isset($jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children'] - ['payment']['children']['beforeMethods']['children']['place-order-recaptcha'])) { + ['payment']['children']['beforeMethods']['children']['place-order-recaptcha-container']['children'] + ['place-order-recaptcha'])) { unset($jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children'] ['payment']['children']['beforeMethods']['children']['place-order-recaptcha-container'] ['children']['place-order-recaptcha']);