getMerchantInformation
Ce contenu n’est pas encore disponible dans votre langue.
getMerchantInformation(
client,options?):Promise<GetMerchantInformationReturnType>
Defined in: actions/getMerchantInformation.ts:17
Fetch the current merchant information (name, rewards, tiers) from the wallet iframe.
Results are cached in memory for 30 seconds by default. Concurrent calls while a request is in-flight are deduplicated automatically.
Parameters
Section titled “Parameters”client
Section titled “client”The current Frak Client
options?
Section titled “options?”Optional cache configuration
cacheTime?
Section titled “cacheTime?”number
Time in ms to cache the result. Default: 30_000 (30s). Set to 0 to disable.
Returns
Section titled “Returns”Promise<GetMerchantInformationReturnType>
The merchant information including available reward tiers
`GetMerchantInformationReturnType` for the return type shape