Klarna

With Klarna, you choose exactly how much you want to pay and when. There's a flexible payment method that works with your budget, wherever you shop.

Ways to pay with Klarna

Pay in 4

Split your purchase into 4 interest-free payments, paid automatically every 2 weeks.

Pay Now

Pay instantly with your debit or credit card and stay in full control of your expenses.

Pay in 30 days

Shop now and get the flexibility to pay up to 30 days later. With Klarna you can get it now and pay it later. Interest-free.

Pay over time

The easiest payment option when you want to make a larger purchase more manageable over time. Klarna offers financing plans that range from 6-24 months with interest rates starting at 0%.

Integration

When using Klarna, a customer is required. Create a customer using the following steps or use an existing customer.

Customer creation doesn't need to include payment method details but it is important to include all billing address information, specially the country field is required as this will be used in Klarna hosted payment page to show different available payment methods (buy now, pay later).

Apart from the country specified above, the available payment methods for a customer depends on the amount of the payment and which products are activated in your Klarna account.

To activate countries and payment methods in Klarna, send an email to Klarna support: shop@klarna.de . Or to find out more visit Klarna support https://www.klarna.com/en-ch/business/merchant-support/

Example authorizePayment using Klarna - use KLARNA as the type for the paymentMethodand CUSTOMER_ID_CREATED_OR_EXISTING with the UUID of the customer you created on our system.

  curl
    -X POST
    -H "Content-Type: application/json"
    -H "Authorization: Bearer xxxxxxx"
    -d '{
      "query": "mutation authorizePayment($authorisePayment: AuthorisedPaymentInput!) {
        authorizePayment(authorisePayment: $authorisePayment) {
          id
          status
        }
     }",
      "variables": {
         "authorisePayment": {
            "orderId": "5113e019-9316-4498-a16d-4343fda403eb",
            "flowId": "0c6d975e-f586-4fa6-8caf-863e69ac78d6",
            "amount": 1200,
            "currencyCode": "USD",
            "apmRedirectUrl": "http://valid-url-to-merchant-callback-endpoint.io",
            "paymentMethod":{
              "type": "KLARNA"
            }
            "customer":{
              "id": "CUSTOMER_ID_CREATED_OR_EXISTING"
            }
         }
      }
    }'
    https://api.whenthen.com/api/graphql

Examples of Hosted Payment Page

Depending on country, amount and product

Germany - Pay now, Pay later

Klarna Germany

Ireland - Pay now

Klarna Ireland