Klarna Web SDK v2
    Preparing search index...

    Interface KlarnaPlacementOptions

    Create a Klarna placement

    Klarna.Messaging.placement({
    key: 'credit-promotion-auto-size',
    amount: 2000,
    locale: 'en-GB',
    }).mount('#test-container');

    gated

    interface KlarnaPlacementOptions {
        amount?: number;
        id?: string;
        key:
            | "credit-promotion-auto-size"
            | "credit-promotion-badge"
            | "top-strip-promotion-auto-size"
            | "top-strip-promotion-badge"
            | "footer-promotion-auto-size"
            | "info-page"
            | "checkout"
            | "homepage-promotion-tall"
            | "homepage-promotion-wide"
            | "homepage-promotion-box"
            | "sidebar-promotion-auto-size";
        locale: string;
        theme?: "default"
        | "light"
        | "dark"
        | "outlined";
    }
    Index
    amount?: number

    The value should be in non-negative minor units. Eg: 25 Dollars should be 2500.

    id?: string

    Unique identifier for the placement.

    key:
        | "credit-promotion-auto-size"
        | "credit-promotion-badge"
        | "top-strip-promotion-auto-size"
        | "top-strip-promotion-badge"
        | "footer-promotion-auto-size"
        | "info-page"
        | "checkout"
        | "homepage-promotion-tall"
        | "homepage-promotion-wide"
        | "homepage-promotion-box"
        | "sidebar-promotion-auto-size"

    Type of placement that will be shown.

    locale: string

    Preferred locale, in IETF BCP 47 format.

    theme?: "default" | "light" | "dark" | "outlined"

    Specifies the theme for the messaging content. This parameter allows customization of the message appearance to match the Partner's site theme.