A Next.js application that allows users to purchase Amazon products using cryptocurrency through Crossmint's checkout system.
- 🔍 Search Amazon products by URL, ASIN or keywords
- 💳 Pay with cryptocurrency (USDC, ETH, etc.)
- 💳 Alternative credit card payment option
- 🔗 Support for Amazon product URLs and ASINs
- 🛒 Seamless checkout experience
- 📱 Responsive design for all devices
- Node.js 18+ and npm/yarn
- Crossmint API key
- Search API key (for product search) https://searchapi.io
Create a .env.local
file in the root directory with the following variables:
CROSSMINT_API_KEY=your_crossmint_api_key
SEARCH_API_KEY=your_search_api_key
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=your_wallet_connect_project_id
NEXT_PUBLIC_CROSSMINT_ENV=staging
- Clone the repository:
git clone https://github.com/yourusername/checkout-amazon-e2e-v0.git
cd checkout-amazon-e2e-v0
- Install dependencies:
npm install
# or
yarn install
- Run the development server:
npm run dev
# or
yarn dev
- Open http://localhost:3000 in your browser.
You can search for products in several ways:
- Enter an Amazon ASIN (e.g.,
B07MJL8NXR
) - Paste an Amazon product URL
- Use keywords to search for products
- Search for a product using any of the methods above
- Click on the product to view details
- Click "Buy Now"
- Connect your wallet or choose credit card payment
- Complete the checkout process
- Cryptocurrency:
- USDC
- ETH
- Other supported cryptocurrencies
- Credit Card
├── app/
│ ├── api/ # API routes
│ ├── components/ # React components
│ ├── config/ # Configuration files
│ ├── contexts/ # React contexts
│ ├── providers/ # App providers
│ ├── utils/ # Utility functions
│ └── page.tsx # Home page
├── public/ # Static files
└── package.json # Dependencies
- Next.js 14
- React
- Tailwind CSS
- Wagmi (Web3)
- Crossmint API
- Search API
- 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, please open an issue in the GitHub repository or contact the maintainers.