Skip to main content
Class Embedded checkout widget matching the official Crossmint RN SDK CrossmintEmbeddedCheckoutV3.
Loads the Crossmint hosted checkout page in a WebView and communicates bidirectionally via postMessage for dynamic sizing, order updates, and crypto transaction signing.
Host lifecycle notes:
  • changing apiKey or config reloads the hosted checkout
  • if the host app reuses a checkoutController across different checkout scenarios, clear it or replace it before rebuilding to avoid stale order state
  • use onDiagnostic to observe blocked navigation, malformed hosted messages, and WebView resource errors in staging or production

Constructors

CrossmintEmbeddedCheckout

Properties

apiKey

Crossmint API key.

config

Checkout configuration (order, payment, appearance).

payer

Optional crypto payer override for signing transactions within checkout.

checkoutController

Optional reactive controller for checkout order state.

onOrderUpdated

Called when the order state changes.

onOrderCreationFailed

Called when order creation fails.

onDiagnostic

Called when the hosted checkout emits a runtime diagnostic.

loadingBuilder

Optional builder for the loading overlay rendered on top of the hosted checkout WebView while the page is loading. When null, the widget falls back to a Material CircularProgressIndicator inside a themed background container (the React Native Crossmint SDK parity default).

defaultHeight

Initial height before the hosted page reports its actual height.

Methods

createState