Set up your local development environment for building payment-enabled APIs with CheapPay
Clone the CheapPay repository
Install dependencies
Set up environment variables
.env
file in your project root:Get devnet tokens
Express.js API server
http://localhost:3001/api/premium
Next.js fullstack application
bash cd examples/typescript/fullstack/next npm install npm run dev
Visit http://localhost:3000
to see the complete payment flowFacilitator service (advanced)
http://localhost:3011
Start your development server
Navigate to a protected endpoint
Connect your wallet
Complete the test payment
Fork and clone
Make your changes
Test thoroughly
Submit a pull request
Error: Wallet connection failed
Error: Payment verification failed
Error: Transaction timeout