Quick reference
| Option | Type | Default | Description |
|---|---|---|---|
buttonOptions.text | string | — | Custom text next to the Klarna logo |
Button customization
Customize the text displayed on the Klarna via Adyen payment button.| Option | Type | Default | Description |
|---|---|---|---|
buttonOptions.text | string | — | Text displayed next to the Klarna logo. Replaces the default “Pay with” text. |
How it works
Klarna via Adyen uses a redirect-based payment flow:- Customer selects Klarna as their payment method
- If multiple Klarna payment types are available, the customer selects one (e.g., Pay Now, Pay Later)
- Customer is redirected to Klarna to authorize the payment
- After authorization, the customer is redirected back to your checkout
Client session requirements
Klarna via Adyen requires specific data in the client session to process payments. Pass these when creating the client session on your server.| Parameter | Required | Description |
|---|---|---|
currencyCode | Yes | 3-letter ISO 4217 currency code (e.g., USD, EUR, GBP) |
order.lineItems | Yes | Details of the line items of the order |
order.countryCode | Yes | Country code of the customer |
customer.emailAddress | No | Pre-fills the Klarna payment form |
customer.mobileNumber | No | Pre-fills the Klarna payment form |
customer.shippingAddress | No | Pre-fills the Klarna payment form |
customer.billingAddress | No | Pre-fills the Klarna payment form |
Redirect configuration
Klarna via Adyen uses Primer’s redirect payment flow. By default, the SDK opens a popup overlay for the Klarna redirect. If popups are blocked or the user is in a WebView, it falls back to a full-page redirect. You can configure redirect behavior through theredirect options:
Testing
Sandbox testing
Use Primer’s TEST environment to test Klarna via Adyen payments without processing real transactions. Visit the Klarna Sample Data Page for test credentials and sample customer data.Production
No special configuration is required to go live — use your production credentials and ensure your Adyen account has Klarna enabled.Troubleshooting
Klarna button not appearing
Klarna button not appearing
Redirect popup blocked
Redirect popup blocked
Possible causes:
- Browser popup blocker is active
- Running inside a WebView that blocks popups
redirect.forceRedirect: true.Payment types not showing
Payment types not showing
Possible causes:
- Klarna does not offer payment types for the customer’s country or order amount
- Adyen configuration limits available Klarna payment types
- Check Klarna’s supported countries and currencies
- Verify your Adyen account’s Klarna configuration
- Verify order amount meets Klarna’s minimum requirements
Complete example
See also
SDK options reference
All configuration options
Klarna options (direct)
Klarna direct integration options
Klarna documentation
Official Klarna documentation