With On-site messaging, banners inform your customers which payment and financing options are available before they reach the checkout page.
The Klarna extension includes the logic that makes the following adjustments possible:
You can configure the position and design of the placements in the Admin panel with this path: Stores > Configuration > Sales > Payment Methods > Klarna > On-site Messaging
Retrieve the identifier for On-site messaging from the Klarna Merchant Portal, where you also can **Allowlist **your shop domain in the Klarna Merchant Portal, as documented here.
.png)
Enable On-site messaging in your Adobe Commerce Admin.
You decide where to display messaging in your store. It can be shown on the cart page, on the product detail page, or in the footer of the page.

Tip: If there’s an error, for example, with the API, on-site messaging won’t appear until the error is fixed.
Each store can look different and you can choose a design that best matches your store. For example, you can change the width and height of the messaging banner.
The design is predefined on Klarna’s side and the information about it is returned through the API. No manual work is needed except choosing the design.
To enable the display of Klarna's On-site messaging in your storefront, perform these steps:

2a. In the Klarna merchant portal, navigate to Settings > Client identifier > Generate. Copy and save the Client Identifier.

2b. In the very same page, switch the tab from "Client Identifier" to "Allow origins". Enter the store domain only (exclude https://) and press "Register"



.png)




The design should now be visible back in the Placements page.


Your customized placement should now appear in your e-commerce store. If it does not show up immediately, clear the cache and refresh the page.
Related articles