Table of contents
The payment provider Klarna is available in various stores and marketplaces as a payment method and can take over the creation of invoices for sellers. In addition to the common payment method Klarna invoice, there is also Klarna Prepayment for prepayment orders.
With the Klarna module in the Xentral AppStore you can establish a direct connection to Klarna. This makes it possible to transfer the tracking number of the order as a delivery confirmation to Klarna via the API, as soon as the order is shipped in Xentral. Klarna will then claim the payment from the customer.
Alternatively, you can create Klarna as a payment method without connecting your account. Then you have to proceed manually, i.e. mark the status of the orders in Klarna manually as 'sent' and store the tracking number in Klarna if necessary. For some stores there are plugins that handle the communication to Klarna completely. Then a connection in Xentral no longer needs to be made.
In addition, Klarna can be connected as a business account in order to import payments via live import.
Connect Klarna as a payment method
To connect Klarna directly via API, the access data (credentials) must be stored in the system. Under Administration → Settings → Payment methods you can define another payment method in Xentral using the +NEW button. Klarna must be selected as the module.
Afterwards you can activate the payment method and enter your Klarna account data.
You will need the username (formerly Merchant-ID) and the password (formerly Shared Secret), both of which you will find in your Klarna account. Username and password serve as API credentials for Klarna as they are a form of authentication.
Where these are found in the Klarna backend is explained here in the Klarna developer portal.
Please note that the type must be unique, preferably lower case klarna.
In Xentral, you can mark the orders as paid in advance so that they do not end up in the dunning system. Klarna takes care of the payment processing.
After you have successfully deposited the data, you can choose an order in Xentral with Klarna payment method, which you can track until the shipment, that is until the printing of the parcel stamp and the recording of the tracking number.
As soon as the tracking number has been recorded, a request is sent to Klarna. If this has been successfully reported back, you will receive a log entry in the order from the Klarna feedback, which you can view via the minidetail.
In this example, Klarna Invoice is connected directly via API. Because the payment processing is Klarna, the orders in Xentral are already marked as paid in advance.
In auto shipping, Xentral creates only one delivery bill for this order, as the invoice is made by Klarna and sent to the customer.
In the log of the order, you will find the feedback from Klarna. If the invoice and payment risk were confirmed positively, you will receive a message.
If the feedback fails, you will receive an error message and you can check the invoice manually in Klarna.
For cancellations via Klarna, no entries are reported back, and also no cancellations are included in the invoice log.
Connection as a business account
Another option is to connect Klarna as a business account in order to be able to fetch payments via live import. This requires the API credentials of Klarna (API_USER, API_KEY, API_DAYS).
The API credentials can be found on Klarna's site. To do this go to the settings app in the merchant portal and click on "generate new API credentials". It is imperative that the newly generated API credentials be saved, as they can only be seen once.
The "Business accounts" module can be found under Administration → Settings → Accounting → Business accounts and to create a new account click on "New". There "Custom" is selected and Klarna is selected as the name. The type is Account: Klarna. The API credentials are entered in the "Credentials" field in the following. form:
To add, the business account is now saved.