Skip to main content
Before a user can participate in an offer, they have to satisfy its requirements: identity verification, a signed tax document, a connected wallet, a jurisdiction check, a CoinList account. Which ones apply is decided per offer option, by CoinList. An Ondo order or a Centrifuge deposit names its option, and CoinList checks that option’s requirements before it builds the order, so show the user the checklist of the option they will buy. RequirementsChecklistContainer renders the whole checklist and resolves every requirement type in-app. It is the highest rung (L3, components) and the one to start from.

Prerequisites

Render it

That is the whole integration. The container is self-scoped: it renders fully styled with no style provider in the tree. When the user is signed out it renders its error state and fetches nothing, so mount it only for a logged-in CoinList user and render CoinListSignInCardContainer yourself otherwise. A wallet session renders the error state too. In front of a checkout, CheckoutRequirementsContainer makes that choice for you.

What it does for you

Clicking a requirement’s action button does the right thing per type, with no wiring from you: The fallback for everything is passage.requirements.handle, which opens the corresponding CoinList page in a new tab where the type has one.
Omit onRequirementActionOverride and rely on the defaults. Pass your own handler only if you need custom navigation, or null to disable the action button entirely. The same applies to onContactSupportOverride, which defaults to passage.support.contact.

Content Security Policy

The inline Sumsub verification flow renders an iframe. If your app sets a Content Security Policy, allow these hosts in both frame-src and connect-src. For applicants routed through Sumsub’s alternative domain (for example Vietnam), allow sumsub.me and static.sumsub.me alongside the usual API host. Backend Sumsub API calls stay on api.sumsub.com — api.sumsub.me is not supported.

Resolving wallet requirements in-app

Pass a wallet and the checklist resolves external_wallet and whitelisted_wallet requirements without leaving your app. It only needs signing capability, so a ConnectWallet (an EvmSigner plus the chain it signs on) is enough - no gas, no transaction.
When wallet is omitted entirely - or is null with no onRequestConnect to act on - wallet requirements fall back to opening CoinList in a new tab.

Props

data skips the requirements fetch, but connected-wallet addresses are not part of RequirementsData and are always fetched client-side.
RequirementsData is { requirements, statuses }: the results of passage.requirements.forOffer(offerId) and passage.requirements.statuses(offerId) on PassageServer. statuses is per user, so the server needs a CoinList user’s session for it.

Wallet sessions

A wallet session is a sign-in with a wallet, for a user with no CoinList account. CoinList checks every requirement against a CoinList user, so statuses refuses a wallet session and the checklist renders its error state. A wallet session can still read what an option requires, because that describes the offer and not a user. signInMethodFor, from @passage-cl/react/universal, turns an option’s list into the sign-in it asks for: 'coinlist' for any requirement, not only coinlist_account, and 'wallet' for none. With an app-level token, your server can decide this before any user is known:
In the browser, useOfferRequirements reads the same list on a session of either kind:
Pass data with the requirements your server read to skip the first read. refetch() still reads after a data seed, and does nothing while enabled is false. The Ondo checkouts and the Centrifuge deposit checkout run this check for you. On a wallet session, an option with any requirement shows “Sign in to continue” in place of the checkout. See Building the Checkout flow. CheckoutRequirementsContainer runs it too, before the checkout.

Before a checkout: CheckoutRequirementsContainer

CheckoutRequirementsContainer (@alpha) is the step before a checkout. It renders Buy and Sell tabs, the option’s requirements, and a Continue button that calls onContinue with the chosen side once the requirements pass. You then mount CheckoutContainer with that side. The gate never renders the checkout itself.
The container is self-scoped: it renders fully styled with no style provider in the tree.

Gate props

Sides

OfferSides.of(offer), from @passage-cl/react/universal (@alpha), says which sides an offer’s checkout supports, read from offer.type: ["buy", "sell"] for ondo::swap, ondo::portfolio and centrifuge::vault, and ["buy"] for superstate::swap and coinlist::token_sale. For a buy-only offer the gate hides the tabs and stays on "buy".

What renders, by session

The gate reads the session from PassageProvider: The checklist it mounts gets your wallet and onRequestConnect, and the locale of PassageProvider as its identityVerificationOptions.locale. So inside this gate, the Sumsub flow follows the provider’s language, unlike a RequirementsChecklistContainer you mount yourself.

Signed out

While nobody is signed in, the gate shows only the loggedOut slot: the tabs, any unavailable notice and belowTabs are hidden.
  • Omitted: the CoinList sign-in card, plus WalletSignInContainer (@alpha). That renders Sign in with wallet only when PassageProvider has walletSignIn. With wallet set to null, it shows Connect wallet, which calls onRequestConnect. Without onRequestConnect, it renders nothing until a wallet is connected.
  • null: the gate renders nothing at all, for a page whose own UI owns sign-in.
  • Any other node: that node.

Your own sign-in check

additionalAuthCheck runs your check on top of the SDK session, for every session that could continue: a CoinList user, a wallet session, or a session that failed to load.
  • While it is pending, the gate shows its loading skeleton.
  • When it resolves false or rejects, the gate fails closed: it shows loggedOut exactly as if nobody were signed in, tabs hidden, and nothing at all for loggedOut={null}.
  • It runs again whenever the session changes. A new function identity alone does not run it again, so an inline function is fine.
Pass your own loggedOut with it. The default is the CoinList sign-in card, which would send a user already signed in to CoinList through OAuth again.

Build your own gate (L2)

useCheckoutRequirementsViewModel({ offer, optionId, onContinue, defaultSide?, unavailableSides?, labels?, additionalAuthCheck? }) (@alpha) backs the container and returns { state, onEvent }. unavailableSides is a list of sides, in place of the container’s unavailable nodes.
  • state.side is the chosen side, even when the tabs are hidden.
  • state.tabs is { type: "hidden" } for a buy-only offer and while signed out, or { type: "shown", items }, each item { side, label, disabled }.
  • state.body.type is loading, logged-out, checklist, needs-coinlist, none or error. checklist and none carry continue: { label, enabled }, where enabled is false while the chosen side is unavailable.
  • Send ON_SELECT_SIDE with a side, ON_CONTINUE and ON_RETRY to onEvent.
For the checklist body, mount RequirementsChecklistContainer yourself, passing continue.label as continueLabel, !continue.enabled as continueDisabled, and an onContinue that sends ON_CONTINUE.

The screens the checklist opens

The identity verification flow, the tax document modal and the connect-wallet modal are internal to RequirementsChecklistContainer, and the SDK does not export them. To build your own checklist, use the data hooks below: useKycToken for a Sumsub token, useTaxDocument for the tax document, and useConnectWallet for the wallet ownership proof and binding.
useRequirementsChecklistViewModel backs the container. It takes the container’s props except the loading, error and className slots, and returns { state, onEvent }. In the content state, continueAction is { enabled, label } with your continueLabel, or null when you passed no onContinue. enabled is true once every requirement is satisfied, unless continueDisabled is set. Below it are the requirements data hooks, each usable on its own:
useRequirements reports not-authenticated straight away, with no request, when the user is signed out. It also reports not-authenticated on a wallet session, because it reads statuses. refetch() still fetches after a data seed, and does nothing while enabled is false.See SDK structure for the conventions they share.
passage.requirements is a plain namespace with no React. It is available on both the browser client and PassageServer, except handle, which needs a browser.
A requirement type (RequirementType, from @passage-cl/react/universal) is one of kyc_approved, external_wallet, whitelisted_wallet, jurisdiction, accreditation, document, coinlist_account. coinlist_account is new in v0.14.0, so an exhaustive switch on RequirementType in your code, for example in a getLabel, needs a case for it. A status is not_started, in_progress, action_needed, completed, or rejected.statuses, createKycToken, getPii, and submitDocument require a CoinList user and throw NotAuthenticatedError otherwise, on a wallet session too. forOffer throws it only with no session of either kind, and on the server not at all when you pass an app-level token. handle needs no session, since it only opens a CoinList page.Wallet ownership proof lives on passage.wallets rather than here, because it is provider-agnostic. See Wallets.

Next step

Building the Checkout flow

Once requirements are satisfied, render CheckoutContainer and let it pick the provider. Pass it the same option as optionId, which every checkout requires.