Adyen / adyen-magento2

Adyen Payment plugin for Magento2
MIT License
150 stars 196 forks source link

Loader freezes and payment methods are not loading #2665

Open jansentjeu opened 1 week ago

jansentjeu commented 1 week ago

Describe the bug Due to changes in PR https://github.com/Adyen/adyen-magento2/pull/2611 the loader sporadically remains and payment methods are not loaded. This causes customers to be stuck in the checkout.

The paymentMethodsObserver.subscribe is only for fallback when someone changes their shipping address on the payment page and the self.loadAdyenPaymentMethods(paymentMethodsObserver()) should always be executed.

In other words, the changes from the PR should be rolled back.

To Reproduce Steps to reproduce the behavior:

  1. Add a product to the cart
  2. Go to checkout
  3. Fill in your address
  4. Go to payment page in checkout
  5. The loader does not disappear and the Adyen payment methods are not loaded (This is not always the case, sometimes it is, sometimes it is not)

Expected behavior The loader disappears and the Adyen payment methods are loaded.

Magento version 2.4.7-p1

Plugin version 8.22.9