This project demonstrates the integration of Wert's payment widget for NFT purchases using Next.js and TypeScript.
- NFT purchase integration with Wert payment widget
- Secure payment processing
- Dark theme support
- Responsive design
- TypeScript support
- Node.js 18.x or later
- npm or yarn
- Wert partner account
- Clone the repository:
git clone [repository-url]
cd wert-samples- Install dependencies:
npm install
# or
yarn install- Create a
.env.localfile in the root directory and add your Wert partner ID:
NEXT_PUBLIC_WERT_PARTNER_ID=your_partner_idRun the development server:
npm run dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.
├── src/
│ ├── app/
│ │ ├── nft/
│ │ │ └── page.tsx # NFT purchase page
│ │ └── page.tsx # Main page
│ └── components/ # Reusable components
├── public/ # Static files
└── package.json # Project dependencies
The NFT purchase page uses the following configuration:
- Network: Amoy testnet
- Theme: Dark
- Commodity: TT
- 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 with Wert integration, please refer to the Wert Documentation.