How a Klarna payment works
Klarna is a redirect payment method:- The customer selects Klarna at checkout.
- Payrails returns a redirect URL from the PSP, and the customer goes to a Klarna page.
- The customer signs in to Klarna, picks how to pay, and confirms the purchase.
- Klarna sends the customer back to your
returnInfoURL. - Payrails receives the result from the PSP and updates the payment.
Supported currencies and countries
Klarna supports several currencies, and the currency must match the customer’s country. Through Stripe, Payrails accepts Klarna only in a fixed list of currencies. See the Stripe guide.Integrate Klarna
Choose the PSP that processes Klarna for you. Each guide covers the PSP-side setup, the Payrails configuration and the request fields that PSP requires.Adyen
Klarna via Adyen
Klarna
Direct Klarna connection
Stripe
Klarna via Stripe
Compare PSPs
Save Instruments and merchant-initiated transactions (MIT) work only with Adyen. Adyen returns a recurring reference for the Klarna agreement, and Payrails charges later MIT payments against it without a redirect.Ways to integrate Klarna
- Payrails SDK: the Web SDK shows Klarna when your workflow returns it as a payment option, and redirects the customer to Klarna. To control how the redirect opens, listen for the
actionRequiredevent. - Payrails API: call lookup payment options, then authorize with the payment method code for your PSP. The direct Klarna connection and Stripe use
klarnawithhppas theintegrationType. Adyen usesklarnaPayLater,klarnaPayNoworklarnaPayOverTimewithapi. Each PSP guide lists themetafields that PSP requires.
success URL as proof of payment.