checkout / checkout-magento2-plugin

Checkout.com Magento 2 official extension
MIT License
31 stars 31 forks source link

Error on di:compile (Klarna interface does not exist) #506

Open helloeverything opened 2 years ago

helloeverything commented 2 years ago

Magento instances don't always contain the Klarna 3rd party module (in 2.4.4 it's being removed by default). When Klarna does not exist on the instance we get the below fatal error when running di:compile

Class Klarna\Core\Api\OrderRepositoryInterface does not exist

Using the latest version 3.0.0

CollegeSewing commented 2 years ago

Magento 2.4.4 cannot be compiled correctly due to Checkout (Version 3.1.0) requiring Klarna, which is no longer bundled.

I do wonder if the following would be a quick fix https://docs.klarna.com/platform-solutions/adobe-commerce/adobe-commerce-244-and-above/installation/

However, klarna/m2-klara doesn't exist on the Marketplace https://github.com/magento/magento2/issues/35288

CollegeSewing commented 2 years ago

The new Klarna Magento extention for Magento 2.4.4 resolved the di:compile issue with the Checkout extension https://marketplace.magento.com/klarna-m2-klarna.html

However, the Checkout extension is not compatible with PHP 8.1 Deprecated Functionality: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /vendor/checkoutcom/magento2/Gateway/Config/Loader.php on line 249