# Send additional klarna information . Klarna checkout addon

**URL:** <https://forum.litium.com/t/send-additional-klarna-information-klarna-checkout-addon/1058>\
**Category:** Questions\
**Tags:** klarna\
**Created:** [August 29, 2019, 8:43am UTC](https://forum.litium.com/t/send-additional-klarna-information-klarna-checkout-addon/1058 "2019-08-29T08:43:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mynameisandreas](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/mynameisandreas/32/282_2.png) [@mynameisandreas](https://forum.litium.com/u/mynameisandreas)\
**Post date:** [August 29, 2019, 8:43am UTC](https://forum.litium.com/t/send-additional-klarna-information-klarna-checkout-addon/1058/1 "2019-08-29T08:43:56Z")

</div>

Hi, I have successfully installed the Klarna Plugin, i’m using V3 of the plugin and everything works fine.  
There are just a side point where I want to extend the data sent to klarna.

In the documentation you can read that there’s a method “UpdateDataSentToKlarna” that you can use to extend the data that is sent.  
Now orderlines dosent have all the properties that Klarna does support. For example I would like to add a Link and Image to each orderline.

Is this supported, just i’m missing something?

Litium Version: 5.6

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [August 29, 2019, 9:06am UTC](https://forum.litium.com/t/send-additional-klarna-information-klarna-checkout-addon/1058/2 "2019-08-29T09:06:36Z")

</div>

Send it as json in the comments property, Litium does not send image link to Klarna.

---

<div class="post-metadata">

**Author:** ![mynameisandreas](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/mynameisandreas/32/282_2.png) [@mynameisandreas](https://forum.litium.com/u/mynameisandreas)\
**Post date:** [August 29, 2019, 11:33am UTC](https://forum.litium.com/t/send-additional-klarna-information-klarna-checkout-addon/1058/3 "2019-08-29T11:33:16Z")

</div>

The comments property? Where is this one located? I cant seem to find it. Are you talking about a propery on the object sent to klarna?

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [August 29, 2019, 11:49am UTC](https://forum.litium.com/t/send-additional-klarna-information-klarna-checkout-addon/1058/4 "2019-08-29T11:49:22Z")

</div>

Yeah it is on OrderCarrier OrderRows but you are right on the KlarnaCheckoutOrder Orderlines we do not have merchant\_data nor image\_url properties so it is not possible to add extra information it seems.  
Probably we need to upgrade the AddOn.

---

<div class="post-metadata">

**Author:** ![mynameisandreas](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/mynameisandreas/32/282_2.png) [@mynameisandreas](https://forum.litium.com/u/mynameisandreas)\
**Post date:** [September 2, 2019, 7:07am UTC](https://forum.litium.com/t/send-additional-klarna-information-klarna-checkout-addon/1058/5 "2019-09-02T07:07:13Z")

</div>

When will you add these properties?

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [September 2, 2019, 8:30am UTC](https://forum.litium.com/t/send-additional-klarna-information-klarna-checkout-addon/1058/6 "2019-09-02T08:30:26Z")

</div>

I’ll discuss with R&D and get back to you.

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [September 2, 2019, 11:54am UTC](https://forum.litium.com/t/send-additional-klarna-information-klarna-checkout-addon/1058/7 "2019-09-02T11:54:23Z")

</div>

In accelerator you have an class named `KlarnaPaymentConfigV3` that have a method with the following signature.

```auto
public void UpdateDataSentToKlarna(OrderCarrier orderCarrier, KlarnaPaymentArgs paymentArgs, CheckoutOrder klarnaCheckoutOrder)

```

In this method you have access to the object data that is sent to Klarna and I think you can modify also the order lines with something as the following

```auto
            klarnaCheckoutOrder.OrderLines.First().ProductUrl = "...";
            klarnaCheckoutOrder.OrderLines.First().ImageUrl = "...";

```

The `UpdateDataSentToKlarna` method is executed when Klarna is making an validation call to Litium when the order is placed.

_Remarks: Have not tested that this will work._

---

<div class="post-metadata">

**Author:** ![mynameisandreas](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/mynameisandreas/32/282_2.png) [@mynameisandreas](https://forum.litium.com/u/mynameisandreas)\
**Post date:** [September 6, 2019, 12:54pm UTC](https://forum.litium.com/t/send-additional-klarna-information-klarna-checkout-addon/1058/8 "2019-09-06T12:54:20Z")

</div>

As I state in the question, your solution is also my question why thoes properties dosent exsist. If you read the original question, that class and method is the one I’m talking about.

Thanks anyway.

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [September 6, 2019, 1:11pm UTC](https://forum.litium.com/t/send-additional-klarna-information-klarna-checkout-addon/1058/9 "2019-09-06T13:11:42Z")

</div>

`CheckOutOrder` class is coming from Klarna own library so Litium has no control over that class.  
`klarnaCheckoutOrder.OrderLines` is a collection which you need to perform a ToList() on before seeing the properties in each OrderLine or use foreach method.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [October 4, 2019, 1:11pm UTC](https://forum.litium.com/t/send-additional-klarna-information-klarna-checkout-addon/1058/10 "2019-10-04T13:11:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
