Closed sprankhub closed 4 months ago
Goodmorning @sprankhub , Thank you for opening this issue. It sounds like your version of the mollie/mollie-api-php
is a bit outdated. Can you try to run composer update mollie/mollie-api-php
and see if the error persists? If not, we will lock a higher version of the library in the composer.json of the Magento extension.
Hey, @Frank-Magmodules, I checked the issue in the code and it should only relate to mollie/magento2
and should still be present.
Here, $mollieApiClient->terminals
is referenced:
In MollieApiClient
, this property is not defined:
Do I overlook something?
Hi Simon,
Thank you for your quick response. The naming might be a bit confusing, but there are actually 2 MollieApiClient classes: One in the Magento extension and one in the SDK. You are looking in the Magento extension, but the error is triggered from the SDK. If you look in the exception, you’ll see it’s triggered from MollieApiClientFallbackWrapper
. When you inspect that class, you will see it extends from the SDK’s MollieApiClient: Mollie\Api\MollieApiClient
. That’s why you need to update that library to fix this issue.
Next to that: You are running a few versions behind on the Magento plugin. It is always a good idea to update that too. ;-)
Hmm okay, the Pointofsale
class explicitly references Mollie\Payment\Service\Mollie\MollieApiClient
, but you might have some magic, which switches out the dependency. So all fine, if you are sure the issue is not present in the latest version, feel free to close this :)
Yes, we are sure about that, so we are closing this issue for now. Have a good week ahead @sprankhub !
Describe the bug A clear and concise description of what the bug is.
Used versions
To Reproduce Steps to reproduce the behavior:
Expected behavior No error should be shown, backend order create page should be shown.
Actual behavior An error is shown:
Screenshots n/a
Additional context n/a