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;
        enablementCodes?: string[];
        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.

    enablementCodes?: string[]

    Enablement codes that apply to this purchase. When a payment program requires an enablement code, Klarna includes that program in the messaging content only if you provide the code. Up to 20 codes. Replaces the codes set for the SDK instance; an empty array means no codes are sent. The runtime also reads a comma-separated data-enablement-codes attribute on the placement element.

    future-release

    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.