Deposits and automatic withdrawals for PHP websites. About 15-30 minutes.
| File | What it does | Edit it? |
|---|---|---|
paynode-settings.php | Your keys, and three small connections to your site | Yes - the only one |
paynode-deposit.php | The deposit page your users see | No |
paynode-withdraw.php | The automatic withdraw page | No |
paynode-webhook.php | PayNode tells your site when money arrives or is sent | No |
paynode-core.php, .htaccess | Shared code and privacy rules | No |
paynode-kit.zip on your computer. You get a folder called paynode.public_html and upload the whole paynode folder.https://yourwebsite.com/paynode/paynode-deposit.php in your browser. You should see a Deposit page.paynode/.htaccess and remove the # in front of PassengerEnabled off, otherwise your app answers instead of these pages.Log in to your PayNode dashboard:
yourwebsite.com.https://yourwebsite.com/paynode/paynode-webhook.php and press Save.public_html/paynode/, select paynode-settings.php and press Edit.const PAYNODE_API_KEY = 'PASTE_YOUR_API_KEY_HERE'; const PAYNODE_WEBHOOK_SECRET = 'PASTE_YOUR_WEBHOOK_SECRET_HERE'; const PAYNODE_PAYOUT_KEY = '';
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
''.PAYNODE_KIT_URL and set it to your folder's address, e.g. 'https://yourwebsite.com/paynode' (no slash at the end).Until you do Step 5 the kit uses one test user with its own balance, so you can try it safely.
paynode-deposit.php, deposit 1 USDT and pay it. Within a minute or two the page shows Added and the balance goes up.paynode-withdraw.php, withdraw 1 USDT to your own wallet and watch it change to Sent.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.
| Spot | What it must do |
|---|---|
| 1 - who is logged in | Return the logged-in user's id, e.g. $_SESSION['user_id'] |
| 2 - add to balance | Add the amount to that user's balance in your database |
| 3 - take from balance | Take 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.
| You see | Do 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 paying | Check 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