Aller au contenu

FrakWalletSdkConfig

Ce contenu n’est pas encore disponible dans votre langue.

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

Defined in: types/config.ts:19

Configuration for the Frak Wallet SDK

optional attribution?: AttributionDefaults

Defined in: types/config.ts:89

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:61

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:75

The domain name of your application

window.location.host

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

Defined in: types/config.ts:28

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:94

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


optional waitForBackendConfig?: boolean

Defined in: types/config.ts:82

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

optional walletUrl?: string

Defined in: types/config.ts:24

The Frak wallet url

"https://wallet.frak.id"