Skip to content

Fix error on empty paymentMethodsResponse#2844

Merged
candemiralp merged 3 commits intoAdyen:mainfrom
aschrammel:bugfix/check-payment-method-response-before-using
Feb 5, 2025
Merged

Fix error on empty paymentMethodsResponse#2844
candemiralp merged 3 commits intoAdyen:mainfrom
aschrammel:bugfix/check-payment-method-response-before-using

Conversation

@aschrammel
Copy link
Contributor

@aschrammel aschrammel commented Jan 7, 2025

Description
In case a merchant has not configured any payment method in the customer area yet, we are facing following issue during checkout:
image

This results in an endless loading spinner not loading the checkout correctly.

The proposed changes verify that paymentMethodsResponose.paymentMethodsResponse is set before trying to retrieve paymentMethods from it.

Fixes #2631

@candemiralp candemiralp added the Fix Indicates a bug fix label Feb 5, 2025
@candemiralp
Copy link
Contributor

Hello @aschrammel,

Thank you for your contribution. This PR will be merged and released on the next release.

Best Regards,
Can

@candemiralp candemiralp merged commit 89473aa into Adyen:main Feb 5, 2025
0 of 6 checks passed
@aschrammel aschrammel deleted the bugfix/check-payment-method-response-before-using branch February 6, 2025 07:01
candemiralp added a commit that referenced this pull request Feb 12, 2025
* Solving the hidden dependency on Magento_Paypal module

* Solving the Paypal module dependency

* Updating unit test

* Updating unit test

* Updating unit test

* [ECP-9605] Replace union return types with single return types

* [ECP-9605] Downgrade Instant Purchase module dependency

* [EPC-9605] Update return type

* [ECP-9605] Update return type

* chore(release): bump to 9.14.1

* Fix error on empty paymentMethodsResponse (#2844)

Co-authored-by: Can Demiralp <ecandemiralp@gmail.com>

* [EPC-9612] Migrate to CodeQL action v3 and introduce a config file (#2880)

Co-authored-by: Can Demiralp <can.demiralp@adyen.com>

---------

Co-authored-by: khushboos <khushboo.singhvi@adyen.com>
Co-authored-by: Can Demiralp <can.demiralp@adyen.com>
Co-authored-by: khushboo-singhvi <7098889+khushboo-singhvi@users.noreply.github.com>
Co-authored-by: Andreas Schrammel <andreas@schrammel.codes>
candemiralp added a commit that referenced this pull request Feb 13, 2025
* Solving the hidden dependency on Magento_Paypal module

* Solving the Paypal module dependency

* Updating unit test

* Updating unit test

* Updating unit test

* [ECP-9605] Replace union return types with single return types

* [ECP-9605] Downgrade Instant Purchase module dependency

* [EPC-9605] Update return type

* [ECP-9605] Update return type

* chore(release): bump to 9.14.1

* Fix error on empty paymentMethodsResponse (#2844)

Co-authored-by: Can Demiralp <ecandemiralp@gmail.com>

* [EPC-9017] Bump Adyen Web library version to 6.8.0

* [EPC-9017] Remove leftover CSS rules

* [EPC-9017] Remove unused imports

* [EPC-9017] Implement generic component

* [EPC-9017] Implement payment components V6

* [EPC-9017] Remove unnecessary comma

* [EPC-9017] Implement the new component for action container

* [EPC-9017] Implement new checkout for multishipping

* [EPC-9017] Update unit tests

---------

Co-authored-by: khushboos <khushboo.singhvi@adyen.com>
Co-authored-by: Can Demiralp <can.demiralp@adyen.com>
Co-authored-by: khushboo-singhvi <7098889+khushboo-singhvi@users.noreply.github.com>
Co-authored-by: Andreas Schrammel <andreas@schrammel.codes>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fix Indicates a bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ECP-9228] js errors on luma checkout when no payment methods are returned for adyen_payment_methods_response

3 participants