Skip to content

Commit

Permalink
AM-108 - fix possibility to complete purchase without paying
Browse files Browse the repository at this point in the history
  • Loading branch information
nils.baczynski@fatchip.de authored and nils.baczynski@fatchip.de committed Jan 15, 2024
1 parent 0f59abc commit 049f9da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions views/twig/payment/adyen_assets.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 049f9da

Please sign in to comment.