Skip to main content
Class Renders Crossmint’s hosted identity verification step in a WebView.
Read-only: the hosted page reports lifecycle events and nothing is sent back to it. Open it when the order first carries credentials and, while it is open, keep passing the latest non-null credentials so a rotated secret reaches it. Close it on onComplete or onCancel and keep it closed for that order. With session credentials the order leaves requires-kyc as soon as the buyer submits, before the result screen shows, so the controller’s identityVerificationCredentials turns null while the flow is still on screen.

Constructors

CrossmintIdentityVerification

Properties

apiKey

Crossmint API key. Resolves staging versus production and is forwarded to the hosted page, matching the React Native SDK and the other Crossmint widgets in this package.

credentials

Credentials for the verification session.

locale

Optional locale tag. Must be one the hosted page recognises, for example en-US, es-ES, pt-PT. An unrecognised tag is not ignored: the page rejects it and reports a non-retriable invalidConfiguration error, which leaves the buyer with a dead screen.

onReady

Called when the verification UI is ready.

onComplete

Called with the outcome when verification finishes.

onCancel

Called when the buyer abandons verification.

onError

Called when verification cannot run or continue.

loadingBuilder

Optional builder for the loading overlay. Falls back to a themed Material spinner, matching CrossmintPaymentMethodManagement.

defaultHeight

Initial height before the hosted page reports its actual height.

Methods

createState