REST API
Search…
Klarna

Frontend implementation

Klarna has to be implemented on the front end by the Outshifter partner. Follow instructions from their official documentation:
Klarna Docs - Klarna Payments JavaScript SDK

Outshifter endpoint

Once Klarna is loaded on the frontend and customer procedes to order placement confirmation, you will get customer as well as seller and product information. This action will enable you to post to the Outshifter API through this endpoint.
post
https://api.outshifter.com/klarna/checkout
Klarna - Create payment
Example to include in the body:
1
{
2
sellerId: 25,
3
items: [
4
{
5
productId: 1,
6
variantTitle: "M-Blue",
7
quantity: 1
8
}
9
],
10
currency: "NOK",
11
country: "NO",
12
href: `${window.location.origin}${window.location.pathname}`,
13
options: {}
14
}
Copied!