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.
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.
<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.
<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>