Klarna

Klarna is a supported Adyen open invoice payment method that is used for transactions during the sales order workflow. Klarna can be set as a CustomCharge payment method in the Payment Methods pick list. For example, Klarna can be configured as CustomChargeX, where X can be a number between 1-15.

Before you can use payment processors and their supported payment methods for transactions during the sales order workflow, configuration is required in Order Management.

Note: The Klarna new integration must be set up in the Adyen merchant account to enable Order Management to send order item information in capture and refund request transactions. The request format aligns with mapping used by B2C Commerce.
Note that these multi-capture and multi-refund requests can't be performed with the Klarna payment method.
  • A capture/multicapture of an authorized payment, followed by a refund/multirefund on a payment.
  • B2C Commerce use price adjustments, shipping total net price, or corrected amounts in authorizations or sale (authorization and capture) transactions.
  • Authorize multiple items that are captured in two separate transactions, and then refunded from two separate captures. In this instance, a single refund is required for each order item.

The order XML is imported into Order Management with the payment tag when the payment is Authorized or Captured outside of Order Management. The Capture Delay can be set to Manual or Immediate in the Adyen merchant account. Capture Delay is not set in Order Management. Custom attributes can also be added to the payment tag in the order XML.

Example 1: Payment Tag in XML

This example shows the payment tag in XML when the Capture Delay is set to manual, the custom <method-name> = klarna and the <transaction-type> = AUTH.

Note: When the Capture Delay is set to immediate, the XML is the same except that the <transaction-type> = CAPTURE.
<payments>
  <payment>
    <custom-method>
      <method-name>klarna</method-name>
    </custom-method>
    <amount>69.57</amount>
    <processor-id>Adyen</processor-id>
    <transaction-id>1714482349077657</transaction-id>
    <transaction-type>AUTH</transaction-type>
  </payment>
</payments>

Example 2: Custom Attributes Added to the Payment Tag in XML

This example shows the payment tag in XML when custom attributes are added, the Capture Delay is set to manual, the custom <method-name> = klarna, and the <transaction-type> = AUTH.

Note: When the Capture Delay is set to immediate, the XML is the same except that the <transaction-type> = CAPTURE.
<payments>
  <payment>
    <custom-method>
      <method-name>klarna</method-name>
    </custom-method>
    <amount>69.57</amount>
    <processor-id>Adyen</processor-id>
    <transaction-id>1714482349077657</transaction-id>
    <transaction-type>AUTH</transaction-type>
    <custom-attributes>
       <custom-attribute attribute-id="Adyen_eventCode">AUTHORISATION</custom-attribute>
       <custom-attribute attribute-id="Adyen_paymentMethod">klarna</custom-attribute>
       <custom-attribute attribute-id="Adyen_pspReference">1714482349077657</custom-attribute>
       <custom-attribute attribute-id="Adyen_value">6957</custom-attribute>
       <custom-attribute attribute-id="merchantAccountCode">Test</custom-attribute>
       <custom-attribute attribute-id="merchantReference">1000</custom-attribute>
    </custom-attributes>
  </payment>
</payments>
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.