Klarna Web SDK v1
    Preparing search index...

    Type Alias KlarnaConfiguration

    type KlarnaConfiguration = {
        accountId?: string;
        clientId: string;
        integrationMetadata?: IntegrationMetadataConfig;
        locale?: string;
        sdkToken?: string;
    }
    Index
    accountId?: string

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

    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.

    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'
    }]
    }
    locale?: string

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

    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.