useStripeIdentity hook.
This hook provides access to the present method, verification status, and loading flag.
const fechOptionsProvider = async () => { const response = await fetch('http://${YOUR_SERVER_BASE_URL}/create-verification-session'); const { id, ephemeral_key_secret } = await response.json(); return { sessionId: id, ephemeralKeySecret: ephemeral_key_secret, brandLogo: Image.resolveAssetSource(logo), }; };const { present, status, loading, error } = useStripeIdentity(fetchOptionsProvider)
An optionsProvider method that fetches the VerificationSession ID, ephemeral key secret, and brandLogo.
Generated using TypeDoc
useStripeIdentity hook.
This hook provides access to the present method, verification status, and loading flag.