Documentation / @frak-labs/core-sdk / index / FrakWalletSdkConfig
Type Alias: FrakWalletSdkConfig
FrakWalletSdkConfig = {
customizations?: {css?:`${string}.css`;i18n?:I18nConfig; };domain?:string;metadata: {currency?:Currency;homepageLink?:string;lang?:Language;logoUrl?:string;merchantId?:string;name?:string; };waitForBackendConfig?:boolean;walletUrl?:string; }
Defined in: types/config.ts:17
Configuration for the Frak Wallet SDK
Properties
customizations?
optionalcustomizations?: {css?:`${string}.css`;i18n?:I18nConfig; }
Defined in: types/config.ts:59
Some customization for the modal
css?
optionalcss?:`${string}.css`
Custom CSS styles to apply to the modals and components
i18n?
optionali18n?:I18nConfig
Custom i18n configuration for the modal
domain?
optionaldomain?:string
Defined in: types/config.ts:73
The domain name of your application
Default Value
window.location.hostmetadata
metadata: {
currency?:Currency;homepageLink?:string;lang?:Language;logoUrl?:string;merchantId?:string;name?:string; }
Defined in: types/config.ts:26
Some metadata about your implementation of the Frak SDK
currency?
optionalcurrency?:Currency
The currency to display in the modal
Default Value
"eur"
homepageLink?
optionalhomepageLink?:string
The homepage link that could be displayed in a few components
lang?
optionallang?:Language
Language to display in the modal If undefined, will default to the browser language
logoUrl?
optionallogoUrl?:string
The logo URL that will be displayed in a few components
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
name?
optionalname?:string
Your application name (will be displayed in a few modals and in SSO)
waitForBackendConfig?
optionalwaitForBackendConfig?:boolean
Defined in: types/config.ts:80
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
truewalletUrl?
optionalwalletUrl?:string
Defined in: types/config.ts:22
The Frak wallet url
Default Value
"https://wallet.frak.id"