Skip to content

Commit

Permalink
Fix the issue with closing the payment section on button click event
Browse files Browse the repository at this point in the history
ISSUE: ADCRSET1G-24
  • Loading branch information
Tamara committed Apr 24, 2024
1 parent 49838c1 commit c7828e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/views/js/front/adyen-payment-selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ $(document).ready(function () {
let checkoutController = null;
let paymentId = 0;
let paymentOptions = $('input[name="payment-option"]');
let adyenPaymentMethods = document.getElementsByClassName('adyen-payment-method');

$('.payment-option').filter(function () {
return $(this).find('input[data-module-name="adyenofficial"]').length > 0;
}).addClass('adyen-image')

for (let adyenPaymentMethod of adyenPaymentMethods) {
adyenPaymentMethod.addEventListener('click', (event) => {
event.stopPropagation();
})
}

checkBox.change(function (event) {
if (checkBox.is(":checked") && checkoutController) {
let paymentForm = $("#pay-with-" + paymentId + "-form");
Expand Down

0 comments on commit c7828e7

Please sign in to comment.