These flows are actively being refined. Crossmint’s customer success engineers (CSE) will work with you to review your architecture. Contact Crossmint to get started.
Overview
Before an agent can request payment methods, the human user needs to save their card on file. Crossmint handles card tokenization using a PCI-compliant vault, so your application never sees or stores raw card data. From a single saved card, you can:- Issue virtual cards that agents use for credit card purchases
- Fund stablecoin wallets via the onramp
Where This Lives in Your App
Saving a card requires a UI where the human enters their credit card details. Crossmint tokenizes and vaults the card securely, so neither your app nor the agent ever handles raw card data. The agent can trigger this flow — for example, by sharing a link to the card entry UI — but the human must be the one to fill in their details and submit.Prerequisites
- A Crossmint developer account
- A client-side API key
- A React frontend
- JWT authentication configured. Crossmint uses a JWT to identify the user. See Bring Your Own Auth for setup instructions.
Integration Steps
Wrap your app with the Crossmint provider
Set up the
CrossmintProvider at the root of your app. This makes the Crossmint SDK available to all child components.Add the payment method management component
Place this component in your settings or account page where the user manages their payment methods. Pass your own JWT (from your auth provider) to the
CrossmintPaymentMethodManagement component. This component handles card tokenization and creates Crossmint payment methods automatically.For details on obtaining a compatible JWT, see the JWT Authentication Guide.The
CrossmintPaymentMethodManagement component handles all PCI compliance concerns. Card data is collected and vaulted directly by Crossmint and never passes through your servers.Store the payment method ID
When the user selects or adds a card, the
onPaymentMethodSelected callback provides a CrossmintPaymentMethod object. Store the paymentMethodId in your backend, associated with the user. You will reference it when:- Requesting virtual cards for agent use
- Funding a stablecoin wallet via onramp
How It Connects
Once a card is saved, it serves as the foundation for both payment paths:These flows are actively being refined. Crossmint’s customer success engineers (CSE) will work with you to review your architecture. Contact Crossmint to get started.

