Accept a Klarna payment
Learn how to accept Klarna, a global buy now, pay later payment method.
Versión beta
Klarna on the Express Checkout Element is launching a limited beta in mid October. Reach out here to gain access.
Precaución
Stripe automatically presents your customers payment method options by evaluating their currency, payment method restrictions, and other parameters. We recommend that you configure your payment methods from the Stripe Dashboard using the instructions in Accept a payment.
If you want to continue manually configuring the payment methods you present to your customers with Checkout, use this guide. Otherwise, update your integration to configure payment methods in the Dashboard.
Klarna is a single use, immediate notification payment method that requires customers to authenticate their payment. Customers are redirected to a Klarna page, where they select among multiple payment options (immediate full payment, payment in installments, or deferred payment). When the customer accepts the terms, Klarna guarantees that the funds are available to the customer and transfers the funds to your Stripe account. The customer repays Klarna according to their selected payment option.
Nota
Before you start the integration, make sure your account is eligible for Klarna by navigating to your Payment methods settings.
Determine compatibility
A Checkout Session must satisfy all of the following conditions to support Klarna payments:
- Prices for all line items must be in the same currency. If you have line items in different currencies, create separate Checkout Sessions for each currency.
Vista previa privada
To create recurring or off-session payments with Klarna, sign up for the private preview.
Accept a payment
Nota
Build an integration to accept a payment with Checkout before using this guide.
Use this guide to learn how to enable Klarna—it shows the differences between accepting a card payment and using Klarna.
Enable Klarna as a payment method
When creating a new Checkout Session, you need to:
- Add
klarna
to the list ofpayment_
method_ types - Make sure all your
line_
use the same currency.items
Fulfill your orders
After accepting a payment, learn how to fulfill orders.
Test your integration
When testing your Checkout integration, select Klarna as the payment method and click the Pay button. In test mode, you can then simulate different outcomes within Klarna’s redirect.
Below, we have specially selected test data for the currently supported customer countries. In test mode, Klarna approves or denies a transaction based on the supplied email address.
For production testing, you can use an amount of 3500
in your local currency to test all Klarna payment options besides Financing. For example, if you want to test “Pay in 3” in Italy, you can use a transaction of 35.00 EUR.
Two-step authentication
Any six digit number is a valid two-step authentication code. Use 999999
for authentication to fail.
Repayment method
Inside the Klarna flow, you can use the following test values to try various repayment types:
Type | Value |
---|---|
Direct Debit | DE11520513735120710131 |
Bank transfer | Demo Bank |
Credit Card |
|
Debit Card |
|