Integration Steps
Agentic tokens can only be generated for cards issued by Mastercard and Visa.
1
Obtain Crossmint API key
Create a project in the Crossmint Console (staging environment), obtain a server-side API key from the Overview page, and make sure to save it for later use.
2
Obtain Basis Theory credentials
Example Response
Example Response
3
Collect user's card
Use the

Be sure to fill in the variable
basisTheoryAPIKey
obtained above to render a card input form using Basis Theory’s SDK.Example Form
Example Form

basisTheoryAPIKey
with the value obtained from Step 2.Use this card to test the flow in staging:- Mastercard:
5186161910000103
- For
CVV
orCVC
, use any 3 digit number - For
Expiry Date
orMM/YY
, enter any future date
4
Create purchase intent
Use the
Then use the returned payment method id (
jwt
and basisTheoryProjectId
from Step 2 and card token (token.id
) from Step 3 to create a Basis Theory payment method.Example Response
Example Response
id
) to create a Crossmint purchase intent.Example Response
Example Response
5
Create order
Call Crossmint’s Create Order API with the payment method set to
card-token
.Example Response
Example Response
How are products specified as part of a Crossmint order?
How are products specified as part of a Crossmint order?
General WebsitesShopifyAmazon
- Use
url:
prefix for any website with guest checkout on the internet - Product variants are specified in natural language, as shown below:
- Use
shopify:
prefix for Crossmint to place the order as Merchant of Record - Specify product variants by ID, fetching them using the route in Step 3 here
- Use
amazon:
prefix for Crossmint to place the order as Merchant of Record - No variants are needed as Amazon URLs are unique
6
Complete payment
Use the Check the recipient’s email inbox specified in Step 5 for a purchase receipt.
orderId
from Step 5’s response and the card token (token.id
) from Step 3 to complete the payment.