The main configuration class for the Widget Manager. Containing both required and optional configuration properties.

Hierarchy (view full)

Constructors

Properties

allowedOrigins: string[] = ...

A list of allowed origins for the SDK to communicate with

currencyCodeISO4217: string

The ISO 4217 currency code, e.g. "USD"

debugWidget: boolean = false

Enables the debug console widget. When true, TecsafeWidgetManager.createDebugWidget may be used to mount the TECSAFE debug console. Intended for development and integration testing only - leave it off in production.

iframeTransition: string = 'height 0.3s ease-in-out'

Iframe styles.transition property

languageRFC4647: string

The RFC 4647 language tag representing the user's preferred language, e.g. "en-US"

sdkDebugger: boolean = false

Injects the SDK debug overlay into the host page. When true, the widget manager renders a single collapsible overlay that logs the postMessage traffic of every widget, can send arbitrary messages to a selected widget, and can reset a widget. Intended for development and integration testing only - leave it off in production.

taxIncluded: boolean

Whether tax is included in the prices. Required to display correct pricing info - gross/net.

tecsafeArticles: TecsafeArticle[]

The TECSAFE articles listed by the shop. Sent to widgets via OutMessageSetTecsafeArticles, either proactively or in response to a InMessageRequestTecsafeArticles.

trackingAllowed: boolean

Will activate customer tracking. Make sure to request tracking consent from your customer and set accordingly.

widgetBaseURL: string = 'https://app-ui.tecsafe.de/iframe'

The base URL for the widget UIs