PAYSTACK + NODE.
JS QUICK REFERENCE
=================================
Purpose: Secure user registration behind Paystack payment gateway.
Stack:
- Node.js + Express.js
- MongoDB + Mongoose
- bcrypt for password hashing
- axios for API requests
- dotenv for environment config
Routes:
1. /pay → Validate user + init payment
2. /payment/callback → Verify payment, save user
3. /webhook/paystack → Optional fallback
Security Checklist:
- Hash passwords
- Verify webhook signatures
- Store API keys in .env
- Use HTTPS