API Reference

@frontend-sdk/klarna - v0.24.2

Interfaces

Functions

klarnaPlacement

Const klarnaPlacement(placementValue): ReactElement<any, string | JSXElementConstructor<any>>

Parameters

NameType
placementValuePlacementValue

Returns

ReactElement<any, string | JSXElementConstructor<any>>


useKlarnaOnSiteMessaging

Const useKlarnaOnSiteMessaging(__namedParameters): void

Parameters

NameType
__namedParametersOnSiteMessagingValue

Returns

void


useKlarnaPlacementImpression

Const useKlarnaPlacementImpression(placementValue): void

Parameters

NameType
placementValuePlacementValue

Returns

void


useKlarnaPlacementRefresh

Const useKlarnaPlacementRefresh(): void

Returns

void

Interface: OnSiteMessagingValue

Properties

clientId

Readonly clientId: string


env

Readonly env: "dev" | "prod"


region

Readonly region: "eu" | "na"

Interface: PlacementValue

Properties

inline

Optional Readonly inline: boolean


key

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


locale

Readonly locale: "en-US" | "es-US" | "de-AT" | "en-AT" | "de-DE" | "en-DE" | "da-DK" | "en-DK" | "en-FI" | "fi-FI" | "sv-FI" | "en-GB" | "en-NO" | "no-NO" | "en-SE" | "sv-SE" | "en-NL" | "nl-NL"


preloaded

Optional Readonly preloaded: boolean


purchaseAmount

Optional Readonly purchaseAmount: string


theme

Optional Readonly theme: "default" | "dark"


Did this page help you?