Interoperability refers to the ability of Klarna's full product suite to work seamlessly across multiple integration paths.

interface KlarnaInteroperability {
    on: (
        event: "tokenupdate",
        callback: (interoperabilityToken: string) => void,
    ) => void;
    token: () => string;
}

Properties

Properties

on: (
    event: "tokenupdate",
    callback: (interoperabilityToken: string) => void,
) => void

Register a callback for interoperability token updates.

This method allows partners to set a callback function that gets invoked whenever there is a change in the interoperability token.

Type declaration

    • (event: "tokenupdate", callback: (interoperabilityToken: string) => void): void
    • Parameters

      • event: "tokenupdate"
      • callback: (interoperabilityToken: string) => void

        A function to be executed when token is updated.

      Returns void

Klarna.Interoperability.on('tokenupdate', (interoperabilityToken) => {
console.log('Interoperability Token is updated:', interoperabilityToken);
});
token: () => string

Get an interoperability token to be transfered to Acquiring Partner.

Type declaration

    • (): string
    • Returns string

      The interoperability token