Klarna Web SDK v1
    Preparing search index...

    Interface KlarnaInteroperability

    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;
    }
    Index

    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