Skip to content

FrakWalletSdkConfig

FrakWalletSdkConfig = { attribution?: AttributionDefaults; customizations?: { css?: `${string}.css`; i18n?: I18nConfig; }; domain?: string; env?: FrakEnvironment; metadata: { currency?: Currency; homepageLink?: string; lang?: Language; logoUrl?: string; merchantId?: string; name?: string; }; preload?: ListenerPreloadOption[]; waitForBackendConfig?: boolean; }

Defined in: types/config.ts:42

Configuration for the Frak Wallet SDK

optional attribution?: AttributionDefaults

Defined in: types/config.ts:112

Default attribution params (UTM / via / ref) appended to outbound sharing URLs. Per-call displaySharingPage overrides win, then backend config, then this SDK-level default. utm_content is intentionally excluded — it is per-content/per-product, never a merchant-wide default.


optional customizations?: { css?: `${string}.css`; i18n?: I18nConfig; }

Defined in: types/config.ts:84

Some customization for the modal

optional css?: `${string}.css`

Custom CSS styles to apply to the modals and components

optional i18n?: I18nConfig

Custom i18n configuration for the modal


optional domain?: string

Defined in: types/config.ts:98

The domain name of your application

window.location.host

optional env?: FrakEnvironment

Defined in: types/config.ts:47

The environment to run against.

"prod"

metadata: { currency?: Currency; homepageLink?: string; lang?: Language; logoUrl?: string; merchantId?: string; name?: string; }

Defined in: types/config.ts:51

Some metadata about your implementation of the Frak SDK

optional currency?: Currency

The currency to display in the modal

"eur"

optional homepageLink?: string

The homepage link that could be displayed in a few components

optional lang?: Language

Language to display in the modal If undefined, will default to the browser language

optional logoUrl?: string

The logo URL that will be displayed in a few components

optional merchantId?: string

Your merchant ID from the Frak dashboard (UUID format) Used for referral tracking and analytics If not provided, will be auto-fetched from the backend using your domain

optional name?: string

Your application name (will be displayed in a few modals and in SSO)


optional preload?: ListenerPreloadOption[]

Defined in: types/config.ts:117

Preload specific UI views inside the listener iframe for better UX. Default: [“sharing”]


optional waitForBackendConfig?: boolean

Defined in: types/config.ts:105

Wait for backend config before rendering components. When true (default), components show a spinner until backend config is resolved. When false, components render immediately with SDK static config / HTML attributes.

true