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. 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.
Content Security Policy
The inline Sumsub verification flow renders an iframe. If your app sets a Content Security Policy, allow these hosts in bothframe-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 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. 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.
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 fromPassageProvider:
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 theloggedOut 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 whenPassageProviderhaswalletSignIn. Withwalletset tonull, it shows Connect wallet, which callsonRequestConnect. WithoutonRequestConnect, 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
falseor rejects, the gate fails closed: it showsloggedOutexactly as if nobody were signed in, tabs hidden, and nothing at all forloggedOut={null}. - It runs again whenever the session changes. A new function identity alone does not run it again, so an inline function is fine.
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.sideis the chosen side, even when the tabs are hidden.state.tabsis{ type: "hidden" }for a buy-only offer and while signed out, or{ type: "shown", items }, each item{ side, label, disabled }.state.body.typeisloading,logged-out,checklist,needs-coinlist,noneorerror.checklistandnonecarrycontinue: { label, enabled }, whereenabledisfalsewhile the chosen side is unavailable.- Send
ON_SELECT_SIDEwith aside,ON_CONTINUEandON_RETRYtoonEvent.
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 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. 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.
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.