This page explains how to set up and configure the Klarna Payments module in your PrestaShop store.
The Klarna Payments module connects your PrestaShop store to Klarna and gives you full control over setup, styling, payment capture, and order management. It supports sandbox and live environments, automatic status sync, multilingual checkout, and partial captures or refunds, all handled directly from your PrestaShop admin.
There are two ways to install Klarna Payments in PrestaShop:
klarnapayments.zip
klarnapayments.zip
After installation, go to Modules > Module Manager, search for Klarna Official, and click Configure.
Klarna module on PrestaShop back office
Klarna module environment
Mark the option Run Klarna module in test mode to choose whether the module uses the Klarna test or production environment. Enable this option for test orders, or disable it for real transactions (production).
By default, this option is unmarked. Always confirm you’re using the correct environment when testing or going live.
Adding API credentials on Klarna module
Paste the API username and password you generated in the Klarna Playground or Merchant Portal.
Also select the correct API endpoint (region) that matches your Klarna merchant account.
After saving your credentials, a green checkmark confirms the connection succeeded.
Successfully saving credentials
If credentials are incorrect or the environment is wrong, you’ll see a red notification.
Error saving API credentials
Enable Klarna Payments
In the Klarna Payments section, enable Klarna Payments if you have a direct merchant account with Klarna and want to add Klarna as a payment method in your checkout. This option uses Klarna API credentials created in the Klarna Merchant Portal.
Important
If you’re using Klarna through a payment service provider (Stripe, Adyen, Mollie, etc.), don’t enable Klarna Payments through this module. Instead, activate Klarna directly with the PSP.
Go to the PrestaShop order settings and map the Klarna order statuses to the corresponding statuses in your PrestaShop store.
Mapping order statuses
Status for: | Suggested status on PrestaShop | Definition |
---|---|---|
New orders |
| Payment authorized / order created |
Captured orders |
| Full payment amount captured |
Canceled orders |
| Payment cancelled |
Refunded orders |
| Refunded |
Partially captured orders |
| Partial payment amount captured |
Note
You can adjust these based on your store’s fulfillment process.
This section shows how to automate Klarna capture when a PrestaShop order reaches a certain status, like Shipped.
To enable:
Capture upon fulfillment
Once active, Klarna captures the order when the status changes.
Additional settings
Enable debug mode if you want to log full API requests and responses during testing. You can view logs in the Logs tab.
Important
Turn this off in production environments to avoid unnecessary data capture.
You can choose if Klarna should auto-update PrestaShop order statuses.
Redirects customers to a Klarna hosted page to complete their payment. This option improves compatibility with third-party or one-page checkout modules and is enabled automatically when an OPC module is detected.
Enable B2B mode to send customer’s company details to Klarna.
Select the fallback country for Klarna to use if the customer’s locale can’t be detected from their checkout address.