Accept a Klarna payment
Learn how to accept Klarna, a global buy now, pay later payment method.
With Klarna, customers are redirected to their Klarna account during checkout. If you don’t already have an integration with Stripe, we recommend using Stripe Checkout to create a Stripe-hosted checkout page and configure payment methods in the Dashboard.
Note
Before you start the integration, make sure your account is eligible for Klarna by going to your Payment methods settings.
You can also use Stripe Checkout to:
- Embed a payment form on your site: Customers enter their payment details in an embedded form on your site without being redirect to a new Stripe-hosted page.
- Build a checkout page with embedded components: Customers enter their payment details in your customised checkout page on your site.
Manually listing payment methods
We recommend using dynamic payment methods, where Stripe handles the logic for dynamically displaying the most relevant eligible payment methods to each customer to maximise conversion. If you choose to manually list payment methods, specify klarna
in the payment_method_types when you create a Checkout Session to include Klarna on your checkout page. If you have line_
in different currencies, you need to create separate Checkout Sessions.
Test your integration
When testing your Checkout integration, select Klarna as the payment method and click the Pay button. In testing environments, you can then simulate different outcomes within Klarna’s redirect.
Below, we have specially selected test data for the currently supported customer countries. In a sandbox, 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 |
|