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 1eac781
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions views/twig/payment/adyen_assets.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@
{% if oViewConf.getTopActiveClassName() == 'payment' %}
{% set isPaymentPage = true %}
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 1eac781

Please sign in to comment.