Integrate the Express button into your website in 3 steps.
Start by adding the
script tag inside the
head tag of your website’s HTML source code.
Take a look at the attributes you have to specify inside the script tag.
|Yes||The unique merchant identifier (MID). The MID is different in playground and production.|
|No||The environment where Express button is used. The supported values are |
Make sure to only include the script once, even when adding multiple buttons on a page. Referring to the script multiple times can cause unwanted behavior.
klarna-express-button element inside the body tag of your cart page or product page, wherever you want the button to appear.
|Yes||The language of the checkout page. See the list of supported locales.|
|No||The button’s color theme. Supported values are |
After the customer signs in to their Klarna account, the asynchronous callback will return their personal details. You can then use this data to prefill billing information in your checkout.
In response to the callback, you get the personal details of the authenticated user.