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. In addition, in the case of merchants in the hospitality sector, the following fields should be included within payment:
"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"
},
"payment":{
"order_lines": [{
"name": "Hotel, room John Doe number 21",
"unit_price": 100
}],
"hotel_reservation_details":[
{
"pnr":"20qsx2121",
"hotel_itinerary":[
{
"hotel_name":"Hotel ltd.",
"address":{
"street_address":"New Burlington St 10",
"postal_code":"W1B 1JA",
"city":"London",
"country":"GB"
},
"start_time":"2022-08-06T19:50:00Z",
"end_time":"2022-08-20T22:00:00Z",
"number_of_rooms":1,
"ticket_delivery_method":"email",
"ticket_delivery_recipient":"john.doe@email.com",
"hotel_price":23050,
"class":"Presidential Suite",
"passenger_id":[
1,
2
]
}
],
"insurance":[
{
"insurance_company":"AON",
"insurance_type":"cancellation",
"insurance_price":200
}
],
"passengers":[
{
"id":1,
"title":"mr",
"first_name":"John",
"last_name":"Doe"
},
{
"id":2,
"title":"mrs",
"first_name":"Jane",
"last_name":"Doe"
}
],
"affiliate":"Hotels.com"
}
],
"payment_history_simple":[
{
"unique_account_identifier":"1234567890qwertyuiopasdfg",
"paid_before":true
}
],
"customer_account_info":[
{
"unique_account_identifier":"1234567890qwertyuiopasdfg",
"account_registration_date":"2021-06-10T12:02:21Z",
"account_last_modified":"2021-07-10T12:02:21Z"
}
]
}
}
For payments to be successful, the country provided within the extra_data must match the user's country.