To try out the smoothest user experience when paying with Klarna, please request a test account by
Purchases completed in the test environment are not processed by our production systems and will not result in proper invoices or any fees collected on invoices.
Accessing the developer credentials sign-up page
Note: You may not transfer any real personal data to us during testing. Depending on which product you have integrated, we offer a few different triggers
In our playground (test) environment, you can use any valid address to make a test purchase. You can trigger different behaviors depending on your needs. The following options are available:
Desired behavior | Consumer email address pattern |
---|---|
Only present pre-paid options | example-email**+red**@example.com |
For example, you could use john.doe+red@abcstore.com as the customer’s email address to trigger a checkout that only offers pre-paid payment methods such as card.
Desired behavior | Consumer email address pattern |
---|---|
Successful Swish purchase | example-email+success@example.co |
Rejected purchase | example-email+rejected@example.co |
Swish specific error that will show a detailed error for the user. | example-email+conflict@example.co |
The default response from our test environment reflects a positive approval behavior. Depending on your needs, you might use specially formulated email addresses to trigger a different (stateless) behavior .
When using the test triggers please consider the user account functionality.
The following options are available:
Desired behavior | Consumer email address pattern |
---|---|
New sign up | …“+require_signup@”… |
Returning customer | any email |
Show form: False (only when pre-screen is enabled) | …“+red@"… |
Approved: False | …“+denied@"… |
Pending | …"+pend-{status}-{time delay}@"… * {status} the expected status after the time delay * Options are: accept or reject * {time delay} the time delay, in minutes, before the decision is made of {status} * Must be in two-digit number format in the range 00-99. Note: Only works for US and UK. |
For example, you could use john.doe+require_signup@abcstore.com as the customer’s email address to trigger Klarna’s new customer sign up dialogue within the widget
In order to simulate/test the direct debit payment flow from an end-user perspective, use the following sample IBAN number in the loaded Klarna widget: DE11520513735120710131
. Any other valid-format IBAN would work as well.
To simulate/test the card payment flow from the end-user perspective, use the following card details in the loaded Klarna widget:
Credit card number: 4111 1111 1111 1111
CVV: 123
Exp: 12/25
(Or any other valid date in the future)
Test Credit Card in Playground flow
Test Direct bank transfer in Playground flow
To simulate/test the Phone OTP flow from the end-user perspective, use in the loaded Klarna widget, any valid phone number, for example, +491755555555
. Enter any 6 digit number except 999999
for OTP. Using 999999
will cause the flow to fail.
Test Phone OTP in Playground with success
Test Phone OTP in Playground with failure