Skip to main content

Klarna EMD

Based on the business category you operate in and what goods you sell, you might need to provide additional information about the order items when creating or updating a session.

info

This is only applicable if you have Klarna as an enabled payment method in your checkout configuration.

EMD

In some cases, Klarna requires additional information regarding the transaction in order to make a correct risk assessment. This information is called Extra Merchant Data (EMD) and may consist of data about the customer performing the transaction, the product/services associated with the transaction, or the seller and their affiliates.

The type of information you need to provide is determined by the business category you operate in and what you sell and can be categorized into what Klarna calls "EMD packages". The various packages, short descriptions of each package, and examples of what can be contained in them, are shown in the table below:

EMD packages and descriptions

EMD packageDescriptionExample
Event sales ordersEvent ticketsConcert tickets
Recurring payment transactionsSubscriptions or recurring paymentsContact lens subcription
Marketplace ordersOrders that are being sold on a marketplaceSub-merchants sell goods through your marketplace
Travel-related transactionsTravel ticketsFlight tickets

An example selling concert tickets

Travis Scott is coming to Oslo. He is going to light up Oslo Spektrum. Everyone you know is excited, but you are stressed because you work at Ticket Provider AS and have been tasked with creating a system that sells the tickets to the concert. But fear not, Dintero to the rescue! Since you are very smart and appreciate easy and robust payments, you are already using Dintero as your trusted payment provider. You also have Klarna enabled because Klarna is cool and people want to pay using Klarna. We just need some extra information from you regarding the concert.

Referring to the table above, since you are selling tickets to a concert and have Klarna as an enabled payment option, you need to provide the information that is described in the Event sales orders EMD package. Since you could theoretically be selling a ticket that contains multiple events as part of a package, you need to provide the event related information as an array of objects — with each of the objects containing the required information related to the event.

In your case, you are only selling concert tickets to a single concert, so we only need an array of length 1 with one event object. What needs to be included in this object and what the property values could be in your case is shown below:

emd: {
event: [
{
event_name: "Travis Scott Oslo Spektrum 2023",
event_company: "Ticket Provider AS",
genre_of_event: "Rap",
start_time: "2023-11-11T20:00:00Z",
end_time: "2023-11-11T22:00:00Z",
ticket_delivery_method: "email",
ticket_delivery_recipient: "customer@mail.com"
}
]
}

You can also choose to include this information, but it is not required:

arena_name: "Oslo Spektrum",
arena_location: {
city: "Oslo",
country: "NO",
street_address: "Sonja Henies plass 2",
postal_code: "0185"
},
access_controlled_venue: true,
affiliate_name: "Affiliate"

The emd property should be placed on the order items when creating a session. To learn more about the emd property and what should be included for the different packages, please refer to the API docs for creating a session.

That's it! All done. Now you can kick back and relax and perhaps even buy a ticket to the concert yourself.