1. Documentation /
  2. Klarna Checkout – recurring payments

Klarna Checkout – recurring payments

Klarna Checkout is compatible with the WooCommerce Subscriptions extension for handling of recurring payments (in Sweden, Norway, Finland, Germany & Austria).

Requirements

↑ Back to top
To get started with recurring payments via Klarna in your WooCommerce store, you will need the following:

  • Your Klarna Checkout MID needs to be configured to enable recurring payments. Get in touch with Klarna to activate this feature, your Klarna account/MID does not support recurring payments by default.
  • The extension WooCommerce Subscriptions installed and configured.
  • In the WooCommerce Accounts & Privacy settings (–> WooCommerce –> Settings –> Accounts & Privacy) the checkboxes Automatically generate username from customer email and Automatically generate customer password needs to be checked so new customer accounts can be created.

Get started with subscriptions

↑ Back to top
  1. Create a simple subscription product. Set it to a daily renewal so that we can test the renewal process as well.
  2. Make a test purchase (either with a real account or a test account).
  3. Make sure that:
    1. The subscription order is created in both Klarna and WooCommerce.
    2. A Klarna reservation number is added to the order notes in WooCommerce.
    3. A Klarna recurring token is added to the Subscription.
    4. The subscription status is set to Active in WooCommerce.
  4. Wait 24 hours and check that the renewal order is created, a new reservation number from Klarna is added to the order notes in the renewal order and the subscription is set to Active again.

Don’t have time to wait for the renewal to be triggered?

↑ Back to top
You can also change the date and time for Next payment in the subscription and set it to an earlier time than 24 hours if you don’t want to wait that long.
  1. Navigate to the subscription (→ WooCommerce → Subscriptions) you want to test.
  2. In the right column you should see a box named Billing Schedule.
  3. Click the date field of the Next Payment section. A calendar is now displayed where you can select todays date. The nearest time you can set the renewal to be triggered is 1 hour in the future.
  4. Wait 1 hour for the renewal to be triggered and then make sure the renewal and subscription behaves as explained in the Get started with subscriptions section.

Failed renewal orders

↑ Back to top
If a renewal order is denied in Klarnas system the subscription will be set to On hold. Information about the reason why the renewal failed will be added as an order note in the renewal order. Information about possible error codes can be found in Klarnas developer documentation.

FAQ

↑ Back to top

No subscription is being created. When a customer signs up there is only a regular order created.

↑ Back to top
This is usually happening because a new customer account wasn’t created. The most common reason for this is that the account settings described in the Requirement section isn’t configured correctly.

No renewals are triggered at all

↑ Back to top
This is usually because you are working in a staging/test environment. WooCommerce Subscriptions have a built-in feature that determine if your installation is a production site or a staging site. From the staging site no renewals are being triggered. Read more about how WooCommerce Subscriptions handle staging sites and migrations here.