Klarna Web SDK v2
    Preparing search index...

    Interface SDKConfig

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

    Acquiring configuration for payment account and settlement currency. Use when the Partner Account has multiple Payment Accounts.

    clientId: string

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

    If the integration is done by an Acquiring Partner or distribution partner then this must be set to the distribution partner's own client ID.

    integrationMetadata?: IntegrationMetadataConfig

    Integration metadata for tracking integrator and originator information. This is useful for Acquiring Partners and platforms to track which integration and merchant is using the SDK.

    integrationMetadata: {
    integrator: {
    name: 'AcquiringPartner',
    moduleName: 'SubIntegration',
    moduleVersion: '2.0',
    sessionReference: 'xxx'
    },
    originators: [{
    name: 'ecommerceCompany',
    sessionReference: '5555-474',
    moduleName: 'ecommercePlugin',
    moduleVersion: '1.0'
    }]
    }
    klarnaNetworkSessionToken?: string

    The klarnaNetworkSessionToken allows you to initialize the SDK with an existing session. Only Partners or Acquiring Partners can retrieve this token on the server side.

    locale?: string

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

    partnerAccountId?: string

    When operating on behalf of another account, specify the partner account ID 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 partner 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 'MESSAGING' product.

    products: ["PAYMENT"]
    
    sdkToken?: string

    The sdkToken allows you to initialize the SDK with an existing session. Only Partners or Acquiring Partners can retrieve this token on the server side.

    This field is deprecated and will be removed in future releases. Please use klarnaNetworkSessionToken instead.