Klarna Web SDK v2
    Preparing search index...

    Interface ShippingConfig

    Configure how the shipping collection form will behave in the purchase flow. Without the shipping config, no shipping collection form will be displayed.

    interface ShippingConfig {
        mode: "EDITABLE" | "READ_ONLY";
        supportedCountries?: string[];
    }
    Index
    mode: "EDITABLE" | "READ_ONLY"

    Configure if the shipping details should be collected from the customer.

    • EDITABLE: the shipping details will be collected from the customer and will be available under stateContext.shipping when the payment request is in state COMPLETED. If you enable this, you must read back and honour the shipping address returned in the payment request response.
    • READ_ONLY: the customer can only see the shipping details that are provided in the supplementaryPurchaseData.shipping[0] object without the ability to change them. The READ_ONLY mode will be supported in a future release. Setting it won't have any effect.
    supportedCountries?: string[]

    Partner's supported shipping countries (ISO 3166-1 alpha-2).

    []