# Klarna Checkout page uriString Error

**URL:** https://forum.litium.com/t/klarna-checkout-page-uristring-error/1927
**Category:** Questions
**Tags:** litium-7
**Created:** [March 10, 2021, 9:39am UTC](https://forum.litium.com/t/klarna-checkout-page-uristring-error/1927 "2021-03-10T09:39:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![control](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@control](https://forum.litium.com/u/control)
#### Post date: [March 10, 2021, 9:39am UTC](https://forum.litium.com/t/klarna-checkout-page-uristring-error/1927/1 "2021-03-10T09:39:53Z")

</div>

I get the below error

```
Messages: Value cannot be null.

Parameter name: uriString

Exception: System.ArgumentNullException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

   at System.Uri..ctor(String uriString)

   at Litium.AddOns.Klarna.PaymentArgs.KlarnaPaymentArgs.GetMerchantUrls(String paymentAccountId)

   at Litium.AddOns.Klarna.Kco.LitiumKcoApi.CreateOrUpdateKcoOrder(OrderCarrier orderCarrier, ExecutePaymentArgs args)

```

I have created a new channel, and setup a new klarna test account as payment provider.  
The old payment provider works fine without any problem.

Please let me know what could be possible wrong with the new setup.  
The url to new channel is accessible from internet.

Litium version: _[7.4.1]_

---

<div class="post-metadata">

### Author: ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)
#### Post date: [March 10, 2021, 10:25am UTC](https://forum.litium.com/t/klarna-checkout-page-uristring-error/1927/2 "2021-03-10T10:25:15Z")

</div>

The URLs are set in `KlarnaPaymentConfigV3` and it seems like some of the URLs are null. You should debug `CreatePaymentArgs` to see which ones. It could be because you’re trying to get the URL for page that is not yet published on your new channel.

---

<div class="post-metadata">

### Author: ![control](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@control](https://forum.litium.com/u/control)
#### Post date: [March 10, 2021, 10:43am UTC](https://forum.litium.com/t/klarna-checkout-page-uristring-error/1927/3 "2021-03-10T10:43:41Z")

</div>

All the values are set and the page is published and visible.

Only difference I could note was  
First channel has the parameters set, which works fine.  
`https://qa.site.se/site.axd/KlarnaPaymentWidget/Confirmation?RedirectUrl=https://qa.site.se/sv/kassa&accountId=TEST_ACCOUNT_1_SE&transactionNumber={checkout.order.id}`

but the new channel doesnt have the parameters set.  
`https://qa.site.eu/site.axd/KlarnaPaymentWidget/Confirmation?RedirectUrl=https://qa.site.eu/sv/kassa`

---

<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: [April 7, 2021, 10:44am UTC](https://forum.litium.com/t/klarna-checkout-page-uristring-error/1927/4 "2021-04-07T10:44:10Z")

</div>

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