Adyen / adyen-shopware5

MIT License
11 stars 12 forks source link

Unhandled error occurred: Call to undefined method #230

Closed magnolia4 closed 8 months ago

magnolia4 commented 8 months ago

We are currently trying to migrate the adyen plugin from version 3.9.5 to 4.1.3.

When we call up the payment methods we get the following error:

image

image

The strange thing is that the payment methods are displayed in the frontend.

image

logeecom commented 8 months ago

Hey @magnolia4

Thank you for reaching out.

Please note that our team checked this issue and we could not reproduce it in our test environment. We tried to upgrade from 3.9.5 to the 4.1.3 plugin version on everything works as expected.

To have better insights on this issue it would be great if you could share the logs, both server and Adyen plugin logs. Also, can you please share the Shopware 5 version that you are using?

Once we have the logs our team will continue the investigation.

Best regards.

magnolia4 commented 8 months ago

The adyen log entity is empty:

image

As a test, we deleted all paymentMethod entities in the database. This means the call works again. We recorded a video to show the process. The problem only seems to occur when adding the credit card:

https://github.com/Adyen/adyen-shopware5/assets/9446008/56043cdd-9f77-45b2-b2ce-92e6d7a6f7ff

logeecom commented 8 months ago

Hello @magnolia4

Thank you for sharing these details. Please note that this can not be reproduced in our test environments and in order to further investigate this issue, our team would need to log into your shop and examine the reported problem.

Please, submit your query through our regular support channels by going to https://www.adyen.help/hc/en-us/requests/new or by sending an e-mail to support@adyen.com. Alternatively, you can also submit your request through the Support section of your Adyen Customer Area.

Please note that you will first communicate with the first level of support, after which the second level of support will be involved. Make sure to provide a detailed explanation of the issue you are having.

If you have any questions or concerns, please let us know.

Kind regards.

sheitmeier commented 7 months ago

We can reproduce this issue with newer versions (> 4.0.2) of the module. The method setCurrencies() is called on Adyen\Core\BusinessLogic\Domain\Payment\Models\PaymentMethodResponse by Adyen\Core\BusinessLogic\Domain\Payment\Services\PaymentService::getCreditCardManagementMethodWithFilteredCurrencies() which at least from our perspective is not defined.

magnolia4 commented 7 months ago

Short feedback: Today we updated the plugin from 4.1.3 to 4.1.6 and the problem is now resolved.