PayNode starter kit - setup guide

Deposits and automatic withdrawals for PHP websites. About 15-30 minutes.

What is in the folder
FileWhat it doesEdit it?
paynode-settings.phpYour keys, and three small connections to your siteYes - the only one
paynode-deposit.phpThe deposit page your users seeNo
paynode-withdraw.phpThe automatic withdraw pageNo
paynode-webhook.phpPayNode tells your site when money arrives or is sentNo
paynode-core.php, .htaccessShared code and privacy rulesNo

Step 1 - Upload the folder

  1. Unzip paynode-kit.zip on your computer. You get a folder called paynode.
  2. In your hosting (for example cPanel → File Manager), open public_html and upload the whole paynode folder.
  3. Check it works: open https://yourwebsite.com/paynode/paynode-deposit.php in your browser. You should see a Deposit page.
Main site is a Node.js app on cPanel? Open paynode/.htaccess and remove the # in front of PassengerEnabled off, otherwise your app answers instead of these pages.

Step 2 - Get your values from PayNode

Log in to your PayNode dashboard:

  1. Website integration → add your website's domain, e.g. yourwebsite.com.
  2. Website integration → set the webhook URL to https://yourwebsite.com/paynode/paynode-webhook.php and press Save.
  3. Website integration → press Create or replace secret, then click the box to copy it. Keep it ready - it is shown only once.
  4. Website integration → press Create API key and copy it.
  5. Only if you want automatic withdrawals: Settings → Create payout key and copy it.

Step 3 - Paste them into paynode-settings.php

  1. In File Manager, open public_html/paynode/, select paynode-settings.php and press Edit.
  2. Near the top you will see these lines:
    const PAYNODE_API_KEY        = 'PASTE_YOUR_API_KEY_HERE';
    const PAYNODE_WEBHOOK_SECRET = 'PASTE_YOUR_WEBHOOK_SECRET_HERE';
    const PAYNODE_PAYOUT_KEY     = '';
  3. Replace the text between the quote marks with your values. Keep the quote marks. When done it looks like this (example values):
    const PAYNODE_API_KEY        = 'sk_live_AbC123...';
    const PAYNODE_WEBHOOK_SECRET = 'whsec_XyZ789...';
    const PAYNODE_PAYOUT_KEY     = 'sk_payout_QrS456...';
    No withdrawals? Leave the payout key as ''.
  4. Find PAYNODE_KIT_URL and set it to your folder's address, e.g. 'https://yourwebsite.com/paynode' (no slash at the end).
  5. Press Save Changes.
Keep these values private. Never put them in a web page, an app, a chat or a public code repository. This file cannot be opened from a browser, so it is safe on your server.

Step 4 - Test in demo mode

Until you do Step 5 the kit uses one test user with its own balance, so you can try it safely.

  1. Open paynode-deposit.php, deposit 1 USDT and pay it. Within a minute or two the page shows Added and the balance goes up.
  2. For withdrawals: in your PayNode dashboard press Deposit funds and send a little USDT plus about $1 of BNB (for network fees) to the address shown. Then open paynode-withdraw.php, withdraw 1 USDT to your own wallet and watch it change to Sent.

Step 5 - Connect it to your users and balances

In paynode-settings.php, Part 2, there are three marked spots (CONNECT THIS 1, 2, 3). Each has an example. A developer usually needs about 10 minutes.

Smallest deposit and withdrawal
Set these in your PayNode dashboard under Settings → Smallest amounts. The kit picks up changes by itself within 5 minutes - no file to edit.
SpotWhat it must do
1 - who is logged inReturn the logged-in user's id, e.g. $_SESSION['user_id']
2 - add to balanceAdd the amount to that user's balance in your database
3 - take from balanceTake the amount off if they have enough, and say whether it worked

Then link your site's Deposit button to paynode-deposit.php and your Withdraw button to paynode-withdraw.php.

If something does not work

You seeDo this
"Could not start the payment"Check the API key in Step 3, and that your domain is added in Website integration.
Deposit stays "Waiting for payment" after payingCheck the webhook URL (Step 2) and the webhook secret (Step 3). Your PayNode dashboard shows each webhook delivery and the reply from your site.
"The withdrawal could not be sent right now"Your PayNode wallet needs more USDT, or a little BNB for network fees. The user's balance has been given back.
"Withdrawals are not switched on yet"Paste a payout key in Step 3.

Questions: Telegram @paynodespace · Full API docs: https://paynode.space/docs