Skip to main content

SdkInitOptions

Configuration options for SDK initialization

Properties​

PropertyTypeDescription
countryIsoCode?stringISO code for the country Example "US"
currencyIsoCode?stringISO code for the currency Example "USD"
currencySymbol?stringCurrency symbol Example "$"
enabledAppsApp[]List of apps/modules to enable
growaveToken?stringGrowave JWT token for authentication. Use this option when the token is known before SDK initialization. When provided, the token is used as is, without the startup authentication request. See https://docs.growave.io/api#tag/Authentication/operation/getStorefrontToken
isCartAvailable?booleanWhether cart functionality is available
isDiscountApplyAvailable?booleanWhether discounts can be applied
isShadowRootDisabledGlobally?booleanWhether Shadow DOM is disabled globally
languageIsoCode?stringISO code for the Shopify Storefront API requests Example "EN" Link https://shopify.dev/docs/api/storefront/latest/enums/LanguageCode
localization?stringLocalization string for the store Example "en"
moneyFormat?stringFormat string for displaying prices Example "{{amount}}"
moneyWithCurrencyFormat?stringFormat string for displaying prices with currency Example "{{amount}} USD"
myshopifyDomainstringShopify domain in myshopify.com format Example "my-shop.myshopify.com"
shopCurrency?stringStore's base currency code Example "USD"
shopName?stringName of the shop Example "My Awesome Shop"
storefrontApiAccessTokenstring | nullStorefront API access token for authentication