This assignment implements a Point-of-Sale (POS) Web UI using Next.js and Solana Pay. The application allows users to add products to a cart and complete the checkout process using Solana Pay. After successful payment, a confirmation is displayed to the user.
Deployed at: https://solana-fellowship-pyur.vercel.app/
- Next.js: React framework for building the web application
- Solana Pay: For processing payments on the Solana blockchain
- Solana Web3.js: For interacting with the Solana blockchain
The main components of the project include:
pages/
: Contains the Next.js pages for routingstyles/
: CSS modules for stylingpages/api/
: API routes for handling Solana Pay transactions
- Clone the repository
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Open
http://localhost:3000
in your browser
- Product List: Displays available products for purchase
- Confirmation: Displays transaction details after successful payment
The application uses Solana Pay for processing payments. Key steps include:
- Creating a transaction request
- Generating a QR code for the Solana Pay transaction
- Monitoring transaction status
- Confirming successful payment