The event name.
Event callback handler.
acquiring_partner
Register an event handler for the widgeterror event.
Anytime an error occurs during the widget flow, the error event is triggered.
If the error event handler is defined, all errors will be emitted to it instead of thrown upwards in the widget method.
Example
klarna.Customer.Transaction.on("widgeterror", (error, widgetData) => {
// Handle the error
// widgetData contains the status of the widget
// error contains the error details
});
The event name.
Event callback handler.
The event name.
Event callback handler.
A token received from Klarna API that authenticates the widget.
Example: