Klarna test automation

Payments

Klarna shows up on product pages, in the basket and at checkout. DoesQA checks every placement and every step of the payment.

Klarna logo
Klarna logo

Test Klarna messaging, checkout and redirects without writing code.

What we test on Klarna

  • On-site messaging on product and basket pages

  • Klarna at checkout, direct or through Adyen

  • Popups, redirects and returns to the store

  • Declined and cancelled payments

  • Order confirmation

How to test Klarna

Use Klarna's playground (test) environment, not the live system. Klarna tells you not to use real personal data; use the official sample customer data for the market you are testing. In playground, a one-time password can be any valid 6-digit number other than 999999. Test messaging on the product and basket pages, then a successful checkout, a decline, and the return to your store.

Run those journeys on every release, on every market where Klarna is offered. Sample accounts are market-specific.

In DoesQA, Switch Frame and Switch Window follow Klarna wherever it renders. Checks prove the messaging is right, not just that it is there. Values keep each market's sample customer data out of the journey.

Klarna test checklist

  • On-site messaging on a product page and in the basket, in the market you are testing.

  • A successful Klarna checkout in the playground environment, using official sample customer data.

  • A declined or cancelled payment, and the state the shopper is left in.

  • Return to the store and the order confirmation.

  • If you serve Klarna through Adyen, complete that path too.

Where Klarna tests usually break

Playground and production are separate.

Live Klarna will not accept sample customers, and playground purchases do not create real invoices. Use playground credentials and official sample data.

The payment often leaves the checkout page.

Follow popups and redirects and check where the shopper lands. In DoesQA, Switch Frame and Switch Window follow Klarna wherever it renders.

One market's sample customer will not work in another.

Klarna documents that a user account is only valid in a single market. Drive country-specific data with Values.

What you need to get started

  • A storefront pointed at Klarna's playground environment, with playground API credentials. Source: Before you test (fetched 10 November 2026).

  • Official sample customer data for the market you are testing, not real personal data. Klarna documents email patterns such as customer+**@klarna.com for an approved purchase and customer+**+denied@klarna.com for a hard decline. In playground, use any valid 6-digit one-time password other than 999999. Source: Sample customer data.

DoesQA Flows dashboard

Get your next release tested end to end.

Hosted journeys with email, MFA, and branching. Shared Elements keep maintenance low. Pass and fail from real hosted browsers.

DoesQA Flows dashboard

Get your next release tested end to end.

Hosted journeys with email, MFA, and branching. Shared Elements keep maintenance low. Pass and fail from real hosted browsers.

Get your next release tested end to end.

Hosted journeys with email, MFA, and branching. Shared Elements keep maintenance low. Pass and fail from real hosted browsers.