CustomPC.tech

๐Ÿš€ Quick Start - Get Payments Working NOW!

โšก 3-Step Setup (5 minutes)

Step 1: Install Dependencies

cd backend
npm install

Step 2: Start the Server

npm start

You should see:

๐Ÿš€ Payment server running on http://localhost:3000
๐Ÿ“Š Admin panel: http://localhost:3000/payments.html

Step 3: Test It!

  1. Open: http://localhost:3000/api/health
    • Should show: "status": "ok"
  2. Open: http://localhost:3000/payments.html
    • Login as admin
    • Fill out payment form
    • Click โ€œProcess Paymentโ€

โœ… Thatโ€™s It!

Your payment system is now running locally and ready to accept payments!

๐ŸŒ Deploy to Production

See the full guide: docs/PAYMENT-SETUP-GUIDE.md

Quick deploy options:

๐Ÿ†˜ Having Issues?

Backend wonโ€™t start?

cd backend
npm install express cors dotenv
npm start

Canโ€™t access payments.html?

  1. Make sure youโ€™re logged in as admin
  2. Go to: http://localhost:3000/login.html?admin=true
  3. Login with your admin account

Payment fails?

  1. Check backend is running
  2. Check browser console for errors
  3. Verify Square credentials in backend/simple-payment-server.js

๐Ÿ“š Full Documentation


Need Help? Check the troubleshooting section in docs/PAYMENT-SETUP-GUIDE.md