Accept payments in under 5 min by just adding a button to your frontend
If you are using our previous version of the hosted checkout button, please refer to the old quickstart guide
In this guide, you will create a web app with Next.js which allows customers to buy digital assets with credit card and crypto payments using Crossmint’s hosted checkout. We will add a button that opens a checkout hosted in a pop-up or new tab.
collectionId
ready.
orders.create
scope enabled. More info on creating API keys here.To integrate in production/mainnet, you'll also need to complete account and collection verification. More information in the production launch guide.
For Marketplaces and Launchpads: You do not need to create a collection (skip Step 2).
Simply use tokenLocator
instead of collectionLocator
in the examples.
It is recommended to test tokenlocator in the production environment.
See Marketplaces & Launchpads guide for more secondary-sale specific details.
This guide will start from scratch with an empty Next.js application. You'll install the required @crossmint/client-sdk-react-ui
dependency and add the embedded checkout component. To get started:
Create a new Next.js application
If you see this message, type y
and press Enter
to proceed:
Name your app `crossmint-embedded-checkout-demo` and accept the default options
Change into the directory created in previous steps
Install @crossmint/client-sdk-react-ui
Open the project in your preferred code editor
This quickstart guide focuses on NFT Collections/Drops (primary sales), but Crossmint also supports marketplace integrations.
Add environment variables
Create .env.local
in your project root:
Create the checkout page
Create /src/app/page.tsx
with:
Run your app
Navigate to the directory your package.json is to run the app
Visit http://localhost:3000
to see your checkout!
Need purchase tracking, multiple line items, or more customization? Here’s a complete setup with additional features:
This advanced example showcases: - Multiple NFTs in one checkout - Purchase status tracking - Preferred payment methods and currencies - Email-based digital asset delivery - Language settings Learn more in our guides: - Payment Methods - Multi-purchases
This demo uses the staging environment:
You’ve successfully integrated a hosted checkout with credit card and crypto payment methods!
Remember this demo is built on staging, so the digital assets will show up on the testnets. To launch on production, check the production launch checklist. You will need to contact Sales to enable the embedded checkout on production.
Learn how to customize the look and feel of the checkout button
Configure available payment options for your users
Use React hooks to build custom checkout experiences
Accept payments in under 5 min by just adding a button to your frontend
If you are using our previous version of the hosted checkout button, please refer to the old quickstart guide
In this guide, you will create a web app with Next.js which allows customers to buy digital assets with credit card and crypto payments using Crossmint’s hosted checkout. We will add a button that opens a checkout hosted in a pop-up or new tab.
collectionId
ready.
orders.create
scope enabled. More info on creating API keys here.To integrate in production/mainnet, you'll also need to complete account and collection verification. More information in the production launch guide.
For Marketplaces and Launchpads: You do not need to create a collection (skip Step 2).
Simply use tokenLocator
instead of collectionLocator
in the examples.
It is recommended to test tokenlocator in the production environment.
See Marketplaces & Launchpads guide for more secondary-sale specific details.
This guide will start from scratch with an empty Next.js application. You'll install the required @crossmint/client-sdk-react-ui
dependency and add the embedded checkout component. To get started:
Create a new Next.js application
If you see this message, type y
and press Enter
to proceed:
Name your app `crossmint-embedded-checkout-demo` and accept the default options
Change into the directory created in previous steps
Install @crossmint/client-sdk-react-ui
Open the project in your preferred code editor
This quickstart guide focuses on NFT Collections/Drops (primary sales), but Crossmint also supports marketplace integrations.
Add environment variables
Create .env.local
in your project root:
Create the checkout page
Create /src/app/page.tsx
with:
Run your app
Navigate to the directory your package.json is to run the app
Visit http://localhost:3000
to see your checkout!
Need purchase tracking, multiple line items, or more customization? Here’s a complete setup with additional features:
This advanced example showcases: - Multiple NFTs in one checkout - Purchase status tracking - Preferred payment methods and currencies - Email-based digital asset delivery - Language settings Learn more in our guides: - Payment Methods - Multi-purchases
This demo uses the staging environment:
You’ve successfully integrated a hosted checkout with credit card and crypto payment methods!
Remember this demo is built on staging, so the digital assets will show up on the testnets. To launch on production, check the production launch checklist. You will need to contact Sales to enable the embedded checkout on production.
Learn how to customize the look and feel of the checkout button
Configure available payment options for your users
Use React hooks to build custom checkout experiences