FrakWalletSdkConfig
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
Properties
Section titled “Properties”attribution?
Section titled “attribution?”
optionalattribution?: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.
customizations?
Section titled “customizations?”
optionalcustomizations?: {css?:`${string}.css`;i18n?:I18nConfig; }
Defined in: types/config.ts:61
Some customization for the modal
optionalcss?:`${string}.css`
Custom CSS styles to apply to the modals and components
optionali18n?:I18nConfig
Custom i18n configuration for the modal
domain?
Section titled “domain?”
optionaldomain?:string
Defined in: types/config.ts:75
The domain name of your application
Default Value
Section titled “Default Value”window.location.hostmetadata
Section titled “metadata”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
currency?
Section titled “currency?”
optionalcurrency?:Currency
The currency to display in the modal
Default Value
Section titled “Default Value”"eur"
homepageLink?
Section titled “homepageLink?”
optionalhomepageLink?:string
The homepage link that could be displayed in a few components
optionallang?:Language
Language to display in the modal If undefined, will default to the browser language
logoUrl?
Section titled “logoUrl?”
optionallogoUrl?:string
The logo URL that will be displayed in a few components
merchantId?
Section titled “merchantId?”
optionalmerchantId?: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
optionalname?:string
Your application name (will be displayed in a few modals and in SSO)
preload?
Section titled “preload?”
optionalpreload?:ListenerPreloadOption[]
Defined in: types/config.ts:94
Preload specific UI views inside the listener iframe for better UX. Default: [“sharing”]
waitForBackendConfig?
Section titled “waitForBackendConfig?”
optionalwaitForBackendConfig?: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.
Default Value
Section titled “Default Value”truewalletUrl?
Section titled “walletUrl?”
optionalwalletUrl?:string
Defined in: types/config.ts:24
The Frak wallet url
Default Value
Section titled “Default Value”"https://wallet.frak.id"