Skip to main content

Klarna

Introduction

Klarna lets you buy now and pay later in interest-free installments, making shopping easier without impacting your immediate cash flow.

Integration by redirection

To integrate via redirection, the user must be present at the time of payment, which must be processed through a browser. First you must generate a payment order.

As service identifier, the service_uuid of the KLARNA service you have activated in your Paylands Backend → Manage → Payment Services → Listing must be specified.

You finally construct the redirect URL by replacing the token with the value returned in the previous call.

https://api.paylands.com/v1/sandbox/payment/process/{token}

Restrictions and requirements

These are the supported currencies:

  • EUR
  • AUD
  • CAD
  • CZK
  • DKK
  • HUF
  • MXN
  • NZD
  • NOK
  • PLN
  • RON
  • SEK
  • CHF
  • GBP
  • USD

When generating the payment order at least the profile, billing_address and shipping_address fields must be provided in order to be able to reconcile payments via Klarna.

"extra_data": {
"checkout": {
"uuid": "C42043F9-B77C-4918-BD43-86C526B4F24D"
},
"profile": {
"first_name": "John",
"last_name": "Doe",
"email": "johndoe@gmail.com"
},
"billing_address": {
"city": "Castellon",
"country": "ESP",
"address1": "Avinguda del Mar 23",
"zip_code": "12000",
"state_code": "CT"
},
"shipping_address": {
"city": "Castellon",
"country": "ESP",
"address1": "Avinguda del Mar 23",
"zip_code": "12000",
"state_code": "CT"
}
}

For payments to be successful, the country provided within the extra_data must match the user's country.