createIFrameFrakClient
createIFrameFrakClient(
args):FrakClient
Defined in: clients/createIFrameFrakClient.ts:44
Create a new iframe Frak client
Parameters
Section titled “Parameters”config
Section titled “config”The configuration to use for the Frak Wallet SDK.
When config.domain is set, it is used to resolve the correct merchant config in tunneled/proxied environments (e.g. Shopify dev with Cloudflare tunnel).
iframe
Section titled “iframe”HTMLIFrameElement
The iframe to use for the communication
Returns
Section titled “Returns”The created Frak Client
Example
Section titled “Example”const frakConfig: FrakWalletSdkConfig = { metadata: { name: "My app title", },}const iframe = await createIframe({ config: frakConfig });const client = createIFrameFrakClient({ config: frakConfig, iframe });