Crossmint Checkout is a modern e-commerce platform that allows users to search and purchase Amazon products using cryptocurrency. Built with Next.js, TailwindCSS, and Web3 technologies.
- Search Amazon products by ASIN or keywords
- View detailed product information
- Purchase products using cryptocurrency ($CREDIT on Ethereum Sepolia)
- Responsive and modern UI
- Web3 wallet integration
- Node.js 18.x or later
- Yarn package manager
- A SearchAPI.io account for Amazon product search
- A Crossmint account for crypto payments
- MetaMask or any Web3 wallet that supports Ethereum Sepolia network
- $CREDIT tokens on Ethereum Sepolia (Contract: 0xe9fFA6956BFfC367B26dD3c256CF0C978603Eaec)
First, clone the repository:
git clone https://github.com/yourusername/crossmint-checkout.git
cd crossmint-checkout
- Install dependencies:
yarn install
- Create a
.env.local
file in the root directory with the following variables:
# SearchAPI.io credentials
SEARCH_API_KEY=your_searchapi_key
# Crossmint credentials
CROSSMINT_API_KEY=your_crossmint_key
# Optional: Environment
NODE_ENV=development
-
SearchAPI.io Key:
- Sign up at SearchAPI.io
- Navigate to your dashboard
- Copy your API key from the dashboard
- The free tier includes 100 searches per month
-
Crossmint Key:
- Sign up at Crossmint
- Go to your developer dashboard
- Create a new project
- Copy your API key
- Note: You'll need to use the staging environment for testing
-
Install MetaMask:
- Download and install MetaMask
- Create a new wallet or import an existing one
-
Add Ethereum Sepolia Network:
- Network Name: Sepolia Test Network
- RPC URL: https://rpc.sepolia.org
- Chain ID: 11155111
- Currency Symbol: ETH
- Block Explorer: https://sepolia.etherscan.io
-
Get $CREDIT Tokens:
- Contract Address: 0xe9fFA6956BFfC367B26dD3c256CF0C978603Eaec
- Add the token to MetaMask using the contract address
- Get test ETH from Sepolia Faucet
- Purchase $CREDIT tokens using the test ETH
Run the development server:
yarn dev
Open http://localhost:3000 in your browser.
yarn build
- Push your code to a GitHub repository
- Import the project in Vercel
- Add the environment variables in the Vercel project settings
- Deploy!
The project is optimized for Vercel deployment and includes all necessary configurations.
checkout/
├── app/ # Next.js app directory
│ ├── api/ # API routes
│ ├── components/ # React components
│ ├── product/ # Product page
│ └── page.tsx # Main search page
├── public/ # Static files
├── styles/ # Global styles
└── types/ # TypeScript types
The following API routes are available:
/api/checkout/search
- Search Amazon products/api/checkout/crossmint
- Handle crypto payments/api/checkout/faucet
- Request test credits/api/checkout/faucet/status
- Check faucet request status
- Next.js 14
- React 18
- TailwindCSS
- TypeScript
- Wagmi (Web3)
- Viem
- SearchAPI.io
- Crossmint
- Ethereum Sepolia Network
- $CREDIT Token (0xe9fFA6956BFfC367B26dD3c256CF0C978603Eaec)
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support, email support@crossmint.com or open an issue in the GitHub repository.