PayNode starter kit (Node.js: Express, Next.js or plain Node)
=============================================================

Open SETUP-GUIDE.html in your browser for the full step-by-step guide.

Short version:
1. Copy this "paynode" folder into your project's main folder (next to package.json), then connect it:
   - Express:  add  require("./paynode/paynode-express")(app);  before app.use(express.json())
   - Next.js:  copy nextjs/app/paynode into your app folder, rebuild
   - Plain Node: run  node paynode/run-alone.js
2. PayNode dashboard > Website integration: add your domain, set the webhook URL to
   https://yourwebsite.com/paynode/webhook, create the secret and an API key.
   (Settings > Create payout key, only for automatic withdrawals.)
3. Put the values in your .env file (or in paynode-settings.js) and set PAYNODE_KIT_URL. Restart.
4. Test a 1 USDT deposit (and a 1 USDT withdrawal) in demo mode at /paynode/deposit and /paynode/withdraw.
5. Connect the three marked spots in paynode-settings.js to your users and balances,
   then link your Deposit and Withdraw buttons.

Edit only paynode-settings.js. Needs Node 18+, no extra packages.
