OptionaldisabledOptionalhideControls if the backdrop overlay should be shown during the customer flow.
The overlay ensures that the customer cannot interact with the background content until the Klarna window is closed. It offers a recovery mechanism for the customer to continue their flow in case the Klarna window goes out of focus or is blocked by the browser.
Only use this if you are using a custom overlay that aligns with Klarna's best practice.
OptionalidUnique identifier for the button.
OptionalinitiateThe function is triggered after the button is clicked.
Return a promise that resolves to a PaymentRequestData object if you want to create a payment request on the client side.
Return a promise that resolves to { paymentRequestUrl } to continue from a payment request URL.
Return a promise that resolves to an object with an optional returnUrl if you want
to redirect the customer to a success page. This is typically used when you have
custom logic on the server side which does not necessarily create a payment request.
One example is when you use payment/authorize which returns an approved transaction.
OptionalinitiationDefines how the customer flow is launched upon clicking the button.
It's recommended to use the DEVICE_BEST value to let Klarna decide the best way to launch
the flow in different devices and environments.
OptionalintentThe intent that the button will be used for.
Klarna will adjust the button label accordingly to optimize the conversion rate.
OptionalloadingSets the initial loading state of the button.
OptionallocaleLocale of the button.
OptionallogoAlignment of the logo inside the button.
Possible values: "default", "left", "center".
OptionalshapeShape of the button.
OptionalthemeTheme of the button.
Sets the initial disabled state of the button.