Klarna Web SDK v2
    Preparing search index...

    Interface SDKConfig

    interface SDKConfig {
        clientId: string;
        locale?: string;
        partnerAccountId?: string;
        products?: ("PAYMENT" | "CUSTOMER" | "IDENTITY" | "MESSAGING")[];
        sdkToken?: string;
    }
    Index

    Properties

    clientId: string

    The client id of the partner account that is integrating the Klarna.js SDK.

    If the integration is done by a PSP/DP then this must be set to the distribution partners own client id.

    locale?: string

    Set the default locale for the SDK. See ISO 3166-1 alpha-2

    partnerAccountId?: string

    When operating on-behalf of another account then the partner account ID is specified using the partnerAccountId property.

    This field is only used when the integrator is an Acquiring Partner or has a complex partner account setup. For direct integration or merchant integration, this field can be omitted.

    products?: ("PAYMENT" | "CUSTOMER" | "IDENTITY" | "MESSAGING")[]

    Array to specify which products to load for optimal performance.

    This reduces the amount of data needed to download. For example, only loading 'PAYMENT' will exclude the 'CUSTOMER' product.

    products: ["PAYMENT"]
    
    sdkToken?: string

    The sdkToken allows the SDK to be initialized with an existing session. Token is only retrieveable by Partners / Acquiring Partners on the server side.