Test your Klarna integration thoroughly in a dedicated environment to ensure system functionality, manage credentials, and simulate real-world payment scenarios before going live.
Klarna's test environment is designed for you to test your integration without incurring actual charges or moving real funds. This simulation allows you to verify that your integration with Klarna's systems functions correctly. Using the test mode is crucial for detecting and resolving potential issues. It should be an integral part of all release procedures to ensure robust testing before deployment to production.
Klarna mandates that all integrators undergo thorough testing in the test environment and provide Klarna comprehensive access to their testing setup for additional validation before going live.
Testing within the live environment is generally discouraged due to the potential for rejections that naturally occur during Klarna validations. However, if testing in the live environment is necessary, be aware of common reasons for rejections:
To minimize complications, focus on extensive testing within Klarna's test environment and limit live tests unless absolutely necessary.
Test your Klarna Partner management API integration by following the test cases below. As a Klarna acquiring partner, we require you to complete and pass all the test cases listed in this section unless exceptions have been approved by Klarna. If a specific product or interaction with Klarna is not included in your integration, and this has been documented in your Solution Scope Document, the representative test case should be skipped.
Steps to follow:
For security reasons never provide real personal or business data in a test environment.
Steps to follow:
You can use this sample data found on docs.klarna.com.
Klarna Partners working with Klarna can proactively suspend a product associated with an account if they stop their relationship with that account holder or believe the account may be breaking the terms of their agreement.
Steps to follow:
stores represent how Klarna’s products are shown to the end customers, be it a website, physical store or a mobile app. Using the correct website store ensures that the correct branding and identity features are displayed to customers, enhancing their experience.
Multiple stores and other stores beyond websites will be supported in future releases.
store collection information is crucial for enhancing the customer’s purchase and post-purchase experience. In a production environment, the customer will be able to take additional actions such as reaching out to customer support or reviewing return processes for the specific Partner where they have made a purchase. This information is linked to specific stores like websites, apps, or physical stores, ensuring that all transactions made through these stores have access to relevant support information when needed.
Multiple stores and other stores beyond websites will be supported in future releases.
It's important that the account information reflects the latest information about your Partners at all times. Fetch and update account information to ensure that all systems are aligned with regards to this information.
This should be programmatically handled whenever an update is applied to an account in your system. Ensure you are testing that the end-to-end functionality is working as expected.
Fetch and update the business information for an account to ensure that the details were correctly sent on onboarding, and that the details can be updated afterwards when required.
This should be programmatically handled whenever an update is applied to an account in your system. Ensure you are testing that the end-to-end functionality is working as expected.
Steps to follow:
Signing keys are used to verify webhook notifications.
Steps to follow:
Is input sent to Klarna validated, and how are potential errors displayed to the merchant? See the Error handling section for more info of error details and how to handle them.
Test your Klarna integration by following the steps for each of the cases below. Here are some things to keep in mind when you test:
Don't use any real-life data when testing. Instead, use the sample customer data and sample payment data provided here.
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome:
Steps to follow:
Expected outcome: