You can find the listed methods in the
Klarna.ExpressButton object once the Express button library is loaded and fully executed.
on method in the Klarna.ExpressButton object lets you register to specific callback methods provided by the Express button. It consists of one mandatory parameter that represents the name of the specific callback being registered, as well as a number of optional properties, depending on which callback is being registered.
user-authenticated callback on the
Klarna.Expressbutton.on method lets you know that the Express button flow has completed.
In response to the callback, you get the personal details of the authenticated user.
In most Express button integrations, the buttons are added to the cart or product page on the initial page load. However, if your page contains dynamic content, for example, a pop-up mini-cart, you can use the
refreshButtons method to repaint the parts of a page that contain the Express button.
refreshButtons method lets you avoid the contents of the
klarna-express-button tag being removed from the page during the repaint.