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
- A completed OAuth session with a working
PassageProvider - An offer id and an offer option id from Display offer details
Render it
CoinListSignInCardContainer yourself otherwise. A wallet session renders the error state too.
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.
Resolving wallet requirements in-app
Pass awallet 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.
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, sostatuses 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:
useOfferRequirements reads the same list on a session of either kind:
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.
The screens the checklist opens
The identity verification flow, the tax document modal and the connect-wallet modal are internal toRequirementsChecklistContainer, 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.
Build your own UI with hooks (L2)
Build your own UI with hooks (L2)
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. 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.
Drive it yourself with the client (L1)
Drive it yourself with the client (L1)
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.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.