Skip to main content
Partner logo
Klarna
Klarna was founded in 2005 in Stockholm, Sweden with the aim of making it easier for people to shop online. In the last 17 years, technology has evolved, excited and transformed the world around us, yet our mission remains as relevant as ever, to make paying as simple, safe and above all, smoooth as possible. Klarna is the leading global payments and shopping service, providing smarter and more flexible shopping and purchase experiences to 150 million active consumers across more than 450,000 merchants in 45 countries. Klarna offers direct payments, pay after delivery options and instalment plans in a smooth one-click purchase experience that lets consumers pay when and how they prefer to. When the company acquired SOFORT in 2014 the Klarna Group was formed. Klarna is backed by investors such as Sequoia Capital, Silver Lake, Bestseller Group, Dragoneer, Permira, Visa, Ant Group and Atomico.
Source: https://www.klarna.com/international/about-us/

Features

Integration type

Pop-in (redirection in overlay)
Tokenization

Yes

Payment Flow

1-step payment flow : Capture
2-step payment flow : Authorization + Capture
3-step payment flow : Pending Authorization + Authorization + Capture

How to test?

info

All tests behaviours are directly available within the payment page redirected to.

Data Mapping & Mandatory Fields

Below is the mapping between your Create Session request and the fields expected by this payment method.

Purse Session fieldMandatory
amountNo
order.redirectionYes
order.referenceNo
order.amountYes
order.tax_amountNo
order.currency_codeYes
customer.typeNo
customer.company_nameNo
customer.gender_codeNo
customer.birthdateNo
customer.billing_address.first_nameNo
customer.billing_address.last_nameNo
customer.billing_address.address_linesNo
customer.billing_address.cityNo
customer.billing_address.postal_codeNo
customer.billing_address.country_codeYes
customer.billing_address.province_codeNo
customer.billing_address.emailNo
customer.billing_address.phoneNo
customer.billing_address.mobile_phoneNo
customer.billing_address.work_phoneNo
shipments.shipping_address.first_nameNo
shipments.shipping_address.last_nameNo
shipments.shipping_address.address_linesNo
shipments.shipping_address.cityNo
shipments.shipping_address.postal_codeNo
shipments.shipping_address.country_codeNo
shipments.shipping_address.province_codeNo
shipments.shipping_address.emailNo
shipments.shipping_address.phoneNo
shipments.shipping_address.mobile_phoneNo
shipments.shipping_address.work_phoneNo
shipments.item_lines.nameYes
shipments.item_lines.priceYes
shipments.item_lines.quantityYes
shipments.item_lines.amountYes
shipments.item_lines.tax_lines.rateNo
shipments.item_lines.tax_lines.amountNo

Payment Labels

LabelMethodPayment type
klarnainstallmentsprimary (payment by installments)

Actions

ActionMandatory fieldsOptional fields
INIT
-
-
APPLY
-
-

Status

PSP statusStateCodeDescription
SUCCESSSUCCESSSUCCEEDEDSuccessful request
COMPLETEDSUCCESSSUCCEEDEDConsumer has successfully gotten an Authorization from the Payment system on updated_at. The Authorization Token is contained in the authorization_token field in a Klarna Payments integration.
CREATESUCCESSSUCCEEDEDCreate request
BACKWAITINGSUCCEEDEDConsumer has pressed the Back button on updated_at. Session is still open for them to retry.
IN_PROGRESSWAITINGSUCCEEDEDConsumer has entered the Payment Page on update_at
WAITINGWAITINGSUCCEEDEDSession is created and consumer has not entered the Payment Page yet
BAD_REQUESTERRORFAILEDBad format: parameter
BAD_VALUEERRORFAILEDBad value: parameter
CANCEL_NOT_ALLOWEDERRORFAILEDCancel not possible
CANCELLEDERRORFAILEDConsumer has cancelled the HPP Session on updated_at. This cancellation is definitive.
CAPTURE_NOT_ALLOWEDERRORFAILEDCapture not possible
DISABLEDERRORFAILEDSession was disabled by an API call, on the merchant’s initiative, on updated_at.
ERRORERRORFAILEDConsumer has encountered an error while paying on updated_at. Session is still open for them to retry.
FAILEDERRORFAILEDConsumer has been declined for the Payment on updated_at. Session is still open for them to retry.
NO_SUCH_CAPTUREERRORBAD_REQUESTCapture cannot be found
NO_SUCH_ORDERERRORBAD_REQUESTOrder cannot be found
NOT_ALLOWEDERRORFAILEDUnauthorized token
NOT_FOUNDERRORBAD_REQUESTInvalid authorization token
REFUND_NOT_ALLOWEDERRORFAILEDRefund not possible
TOKEN_NOT_FOUNDERRORBAD_REQUESTCustomer token not found
UNPROCESSABLE_ENTITYERRORFAILEDUnprocessable request
UNKNOWN_RESPONSEERRORFAILEDPartner unknown