Back to Payment Guides

Integrating Klarna with Shopify: A Setup Guide for Merchants

Learn how to add Klarna to Shopify store with our step-by-step guide. Boost conversions by offering flexible BNPL options and optimizing your checkout experience.

Introduction

Adding Klarna to your Shopify store provides customers with flexible payment options like "Pay in 4" or "Pay Later," which often leads to higher average order values and improved conversion rates. This setup is a standard move for merchants targeting markets in Europe, North America, and Oceania where buy now, pay later (BNPL) services are widely expected.

While the basic integration is straightforward, managing how these payment options appear to different customer segments is where merchants find the most value. We built HidePay on the Shopify App Store to give you that level of control, allowing you to decide exactly when and where Klarna appears during the checkout process. This article provides a technical walkthrough of the installation and explores strategic rules to optimize your payment mix.

Understanding Klarna Integration Options

Before you begin the technical setup, you must determine which integration path fits your store. Shopify offers two primary ways to offer Klarna: through Shopify Payments or as a direct third-party provider.

Shopify Payments Integration

For most merchants in supported regions, the easiest method is enabling Klarna through Shopify Payments. In this scenario, Shopify handles the relationship. You receive your payouts through the standard Shopify Payments schedule, and the setup requires no additional API keys. This is currently available in countries including the United States, United Kingdom, Germany, and several other European markets.

Direct Integration

If you are in a region not covered by the Shopify Payments partnership, or if you have a legacy Klarna merchant account with custom rates, you may need the direct integration. This involves connecting your Klarna Merchant Portal account to Shopify using an API Username and API Password (different from your portal login).

Step-by-Step: Adding Klarna via Shopify Payments

If you already use Shopify Payments, adding Klarna takes only a few clicks. This is the most stable method because it utilizes the native Shopify ecosystem.

  1. Navigate to your Shopify Admin and click on Settings, then Payments.
  2. In the Shopify Payments section, click Manage.
  3. Scroll down to the Payment methods area.
  4. Find Klarna in the list. It will usually be grouped under "Buy now, pay later" or "Local payment methods."
  5. Toggle the checkbox to enable it.
  6. Click Save.

Once enabled, Klarna automatically appears at your checkout for customers in eligible regions and using supported currencies. Shopify manages the visibility based on the customer’s shipping address and the total cart value.

Easily Customize Shopify Payments

Hide, sort, and rename Shopify payment methods using powerful conditions. Customize your checkout and control payment options with HidePay.

Step-by-Step: Adding Klarna as a Standalone Provider

For merchants who cannot use Shopify Payments or prefer a direct contract with Klarna, follow these steps to connect your account.

  1. Go to Settings > Payments in your Shopify Admin.
  2. Look for the Additional payment methods section and click Add payment methods.
  3. Search by provider and type "Klarna."
  4. Select the Klarna app from the results and click Install.
  5. Once the app is installed, you will be prompted to enter your Klarna API credentials. You can find these in the Klarna Merchant Portal under Settings > API Credentials.
  6. Generate a new API Key in the Klarna portal. Copy the API Username and API Password.
  7. Paste these into the Shopify setup screen and click Activate.

After activation, it is vital to perform a test transaction. Use a test customer account with a supported address (e.g., a German or US address) to ensure the Klarna option renders correctly in the payment step of the checkout.

Implementing Klarna On-Site Messaging

Adding Klarna to the checkout is only half the battle. To maximize the impact on your conversion rate, you should inform customers about financing options before they reach the final step. Klarna calls this "On-Site Messaging."

This feature displays small banners or text snippets on product pages and cart pages, such as "4 interest-free payments of $25." To add this to Shopify, you usually need to install the Klarna On-Site Messaging app from the Shopify App Store. Once installed, you can use the Shopify Theme Editor to drag and drop these messages into your product page layout. This informs the customer of their buying power early in the journey, reducing price sensitivity for high-ticket items.

Optimizing the Klarna Experience with HidePay

Simply enabling Klarna is rarely the end of the optimization process. A crowded checkout can overwhelm customers, leading to choice paralysis. We developed HidePay to solve this by giving you granular control over payment method visibility; see our introduction to the app for more context.

Sorting Klarna for Maximum Visibility

By default, Shopify may list payment methods alphabetically or based on internal logic. If Klarna is your highest-converting method for customers spending over $200, you want it at the top. The app allows you to create a sorting rule that moves Klarna to the first position when the cart total exceeds a specific threshold — learn how to organize payment methods by country or by Shopify Market to get started. This ensures your most effective conversion tool is the first thing the customer sees.

Hiding Klarna for Low-Value Orders

Klarna charges merchants a fixed fee plus a percentage of the transaction. For very small orders, these fees can cut significantly into your margins. You can set a rule in the app to hide Klarna if the cart total is below a certain amount; see the guide on how to hide payment methods based on cart total for step-by-step instructions. This keeps your checkout clean and protects your profits on low-margin items.

Managing Regional Availability

Klarna only works in specific countries. If you sell globally but only have Klarna enabled for the US and UK, you don't want the logic to fail or show irrelevant options to customers in other regions. While Shopify handles basic geographic filtering, our tool lets you be more precise — for example using Localized Country, Shipping Country, or Shopify Market conditions. You can hide Klarna for specific provinces, zip codes, or even based on the currency the customer has selected.

Strategic Rules for High-Volume Merchants

As your store grows, your payment strategy should become more sophisticated. Native Shopify settings are often too broad for complex business models like B2B sales or dropshipping.

Excluding Specific Products

Some products may not be eligible for financing due to your terms of service or Klarna’s own prohibited goods list. If a customer adds a restricted item to their cart, the entire checkout might error out if Klarna is an option. You can prevent this by creating a rule that hides Klarna whenever a specific product tag, SKU, or collection is present — see the help guide on how to hide payment methods when a collection of products is in the cart. This automation saves your support team from troubleshooting failed payments.

Segmenting B2B Customers

If you run a wholesale or B2B operation on the same store as your retail business, you likely don't want your wholesale customers using Klarna. Using customer tags, you can hide payment methods based on customer tags. This forces your professional buyers toward traditional methods like bank transfers or credit cards, while retail customers continue to enjoy the flexibility of BNPL.

Handling Express Checkout Conflicts

Shopify's "Express Checkout" buttons (like Apple Pay or PayPal) can sometimes distract from Klarna. If your data shows that customers using Klarna have a 20% higher lifetime value than those using PayPal, you may want to prioritize the BNPL experience. The app lets you hide express checkout buttons under certain conditions, ensuring the customer's focus remains on your preferred payment path.

Why Native Performance Matters

When you customize your checkout, speed is everything. Older Shopify apps used "script tags" or theme code edits that slowed down the page load and could break during Shopify updates. HidePay is built on native Shopify technology; to learn why this matters, read our piece on Shopify Functions, which explains how Functions run inside Shopify’s infrastructure. This means the rules you create run directly within Shopify’s stack, avoiding delays or "flicker" and keeping your checkout compatible with Shopify’s latest features.

Troubleshooting Common Klarna Issues

Even with a perfect setup, you might encounter technical hurdles. Most issues stem from configuration errors rather than platform failures.

The Option Does Not Appear

If Klarna is enabled but not showing up, check your store currency. Klarna requires the store currency to match the customer's local currency in many regions. If you are selling in USD to a customer in the UK, Klarna may not appear unless you have Shopify Markets set up to handle currency conversion.

API Credential Errors

For direct integrations, "Unauthorized" errors are common. This usually happens when a merchant tries to use their Klarna Portal login password instead of the generated API Password. Always ensure you have generated a fresh set of credentials specifically for the Shopify integration. If you need help installing or rechecking the app, follow the official guide to install HidePay.

Restricted Product Categories

Klarna has strict guidelines on what can be purchased using their service. If you sell items like gift cards, tobacco, or certain health supplements, Klarna may automatically disable itself for those transactions. If you find this happening inconsistently, use HidePay to create a hard rule that hides Klarna for those product categories to ensure a consistent user experience.

Managing the Merchant Bottom Line

Payment processing is one of the largest variable costs for a Shopify merchant. Klarna’s fees are typically higher than standard credit card processing. To manage this, you must balance customer convenience with your own margins.

Consider these actions:

  • Monitor your return rates for Klarna orders; BNPL can sometimes lead to higher "bracketed" shopping (buying multiple sizes to return most).
  • Use sorting rules to prioritize lower-fee methods for customers who are likely to pay in full.
  • Rename the Klarna label at checkout to be more descriptive, such as "Klarna: Pay in 30 Days" — see the guide for how to hide, sort, or rename payment methods to make that change.

If shipping fees are a major concern, consider pairing payment rules with shipping controls using HideShip on the Shopify App Store, which gives similar rule-based control over shipping rates.

Nextools focuses on providing tools that make these adjustments simple. By treating your payment list as a dynamic asset rather than a static list, you can actively steer customer behavior toward the most profitable outcomes for your business.

Summary of Next Steps

Setting up Klarna is a proven way to reduce cart abandonment and attract a younger demographic that prefers flexible payments. However, a "set it and forget it" approach leaves money on the table.

To get the most out of your integration:

  1. Enable Klarna via Shopify Payments or the dedicated Klarna app.
  2. Verify your credentials and run a test transaction in a supported region.
  3. Install On-Site Messaging to surface financing options on product pages.
  4. Refine the checkout using HidePay to sort, hide, or rename Klarna based on cart value, location, and customer type.

By applying these steps, you move beyond a basic setup and into a proactive payment strategy. This ensures that every customer sees the right payment option at the right time, protecting your margins while maximizing your sales.

If you are ready to take full control of your checkout experience, install HidePay from the Shopify App Store for a quick start.

FAQ

Does Klarna work with the Shopify one-page checkout?

Yes, Klarna is fully compatible with Shopify’s one-page checkout. Because our app is built on native Shopify Functions, any rules you create to hide or sort Klarna will work perfectly on both the classic and the new one-page checkout layouts.

Can I hide Klarna for customers who have a specific tag?

Yes, this is a common use case for merchants who have both retail and wholesale customers. You can create a rule to hide Klarna (or any other payment method) for any customer who is logged in and has a specific tag, such as "B2B" or "VIP." See the tag-based help guide for details.

Why is Klarna not showing up for my international customers?

Klarna is only available in specific regions and usually requires the transaction currency to match the local currency of the buyer. If your store does not support local currency billing through Shopify Markets, Klarna may not appear for customers outside of your primary market.

Is it possible to change the order of payment methods so Klarna is first?

Shopify does not allow you to reorder payment methods in the standard admin settings. However, you can use our app to create a sorting rule that places Klarna at the top of the list based on conditions like cart total, country, or customer tags.

Get Started with HidePay

Hide, sort, and optimize Shopify payment methods instantly—no code required.