Skip to main content

Latest React SDK version - npm

The Crossmint React SDK (@crossmint/client-sdk-react-ui) provides the user-facing pieces of agent card payments: saving a card, verifying an order intent’s allowance with the card network, re-collecting a saved card’s CVC, and collecting a merchant password for an agent checkout without it ever reaching your app. Agent wallets use the same wallet providers and hooks as the Wallets React SDK.

Installation

Provider Setup

Wrap your application with the required providers:
Note: The agent card components take the user’s JWT directly, so no additional provider is required. Add CrossmintWalletProvider only if your agent also uses wallets.

Quick Example

Once the provider is set up, let the user save a card your agent can pay with:
Note: Card data is collected directly by Crossmint and never passes through your servers. Store the returned paymentMethodId on your backend; it is the input for registering the card and creating order intents.

Next Steps