Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Klarna checkout on Magento 2.4.7 #198

Open
edas11 opened this issue Jan 20, 2025 · 0 comments
Open

Issue with Klarna checkout on Magento 2.4.7 #198

edas11 opened this issue Jan 20, 2025 · 0 comments

Comments

@edas11
Copy link

edas11 commented Jan 20, 2025

Hi, I'm upgrading our Magento installation to 2.4.7. We are using Klarna checkout with Vipps. Version of vipps/module-payment is 2.4.50 and version of klarna/m2-klarna is 2.2.3. When trying to place a Vipps order I get an error Error: Typed property Klarna\Kco\Model\Api\Kasper::$klarnaOrder must not be accessed before initialization in /var/www/html/vendor/klarna/module-kco/Model/Api/Kasper.php:228 on request /vipps/payment/klarna_initRegular. Can you check why this errors is thrown?

I investigated this issue a bit myself and adding this to di.xml fixes the error:

<type name="Vipps\Payment\GatewayEpayment\Command\PaymentCommandManager">
        <arguments>
            <argument name="commandManager" xsi:type="object">EcommerceCommandManager</argument>
        </arguments>
</type>

Looks like Vipps acts as if Api Version is set to MobilePay even though it is Vipps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant