Is it possible to update Klarna HPP order lines with product image and url?
As I understand it is possible when using Klarna checkout, but is it possible with Klarna HPP?
Litium version: 7.7.3
Is it possible to update Klarna HPP order lines with product image and url?
As I understand it is possible when using Klarna checkout, but is it possible with Klarna HPP?
Litium version: 7.7.3
It should be the same code used here I believe.
But how do I get the CheckoutOrder when using HPP?
You mean the call does not go to this method?
KlarnaPaymentConfigV3.cs
UpdateDataSentToKlarna(UrlHelper urlHelper, OrderCarrier orderCarrier, KlarnaPaymentArgs paymentArgs, CheckoutOrder klarnaCheckoutOrder)
No, user is redirected to Klarna. I can’t see there is any call to this method with HPP.
It seems it’s not possible see here
I think it’s possible with the Klarna API. The payment session is updated by the addon immediately after the HPP session is created, including payment order line information.
I checked with the developer again and he explains it as before we call the API to get HPP url, we have to use this API Klarna Docs - Payments API to get session id.
In this API, we can set value for order lines.
But in source code, we don’t set any value for those parameters today.
I think we can use decorator service for Litium.AddOns.Klarna.KlarnaPayments.Builders.OrderLineBuilder class.
So try this.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.