sdkConfigStore
constsdkConfigStore: {getConfig: () =>SdkResolvedConfig; getisCacheFresh():boolean; getisResolved():boolean;clearCache:void;getMerchantId:string|undefined;reset:void;resolve:Promise<MerchantConfigResponse|undefined>;resolveMerchantId:Promise<string|undefined>;setCacheScope:void;setConfig:void; }
Defined in: config/sdkConfigStore.ts:167
Type Declaration
Section titled “Type Declaration”getConfig
Section titled “getConfig”getConfig: () =>
SdkResolvedConfig
Returns
Section titled “Returns”isCacheFresh
Section titled “isCacheFresh”Get Signature
Section titled “Get Signature”get isCacheFresh():
boolean
Returns
Section titled “Returns”boolean
isResolved
Section titled “isResolved”Get Signature
Section titled “Get Signature”get isResolved():
boolean
Returns
Section titled “Returns”boolean
clearCache()
Section titled “clearCache()”clearCache():
void
Returns
Section titled “Returns”void
getMerchantId()
Section titled “getMerchantId()”getMerchantId():
string|undefined
Returns
Section titled “Returns”string | undefined
reset()
Section titled “reset()”reset():
void
Returns
Section titled “Returns”void
resolve()
Section titled “resolve()”resolve(
domain?,walletUrl?,lang?):Promise<MerchantConfigResponse|undefined>
Parameters
Section titled “Parameters”domain?
Section titled “domain?”string
walletUrl?
Section titled “walletUrl?”string
Returns
Section titled “Returns”Promise<MerchantConfigResponse | undefined>
resolveMerchantId()
Section titled “resolveMerchantId()”resolveMerchantId(
domain?,walletUrl?):Promise<string|undefined>
Parameters
Section titled “Parameters”domain?
Section titled “domain?”string
walletUrl?
Section titled “walletUrl?”string
Returns
Section titled “Returns”Promise<string | undefined>
setCacheScope()
Section titled “setCacheScope()”setCacheScope(
domain,lang?):void
Parameters
Section titled “Parameters”domain
Section titled “domain”string
string
Returns
Section titled “Returns”void
setConfig()
Section titled “setConfig()”setConfig(
config):void
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”void