From 049f9da84642bc6572ccc32820b8300e7b250997 Mon Sep 17 00:00:00 2001 From: "nils.baczynski@fatchip.de" Date: Mon, 15 Jan 2024 16:48:10 +0100 Subject: [PATCH] AM-108 - fix possibility to complete purchase without paying --- views/twig/payment/adyen_assets.html.twig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/views/twig/payment/adyen_assets.html.twig b/views/twig/payment/adyen_assets.html.twig index a9660b6..e8c1115 100644 --- a/views/twig/payment/adyen_assets.html.twig +++ b/views/twig/payment/adyen_assets.html.twig @@ -26,9 +26,7 @@ submitForm = document.getElementById('payment'); {# getting checkout next step button with fallback for apex theme #} {# ToDo: create a better way to access 'next step' element #} - const nextStepEl = document.getElementById('paymentNextStepBottom') !== null ? - document.getElementById('paymentNextStepBottom') : - document.getElementsByClassName('btn-highlight')[document.getElementsByClassName('btn-highlight').length -1]; + const nextStepEl = document.getElementsByClassName('btn-highlight')[0]; {# reset the disabled-status of paymentNextStepBottom if payment is changed #} document.getElementsByName('paymentid').forEach(function (e) { e.addEventListener('change', function () {