Error on di:compile (Klarna interface does not exist)
Opened this issue · 2 comments
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
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
magento/magento2#35288
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