Before you start
- WHMCS admin access and a way to upload files: cPanel File Manager, SFTP or SSH
- A Binance account with 2FA on, identity verified and a first deposit made (Binance requires this before it lets you create an API key)
- Your WHMCS server’s public IPv4 address (Binance restricts keys by IPv4)
- The WHMCS cron running
- A full backup of your WHMCS database and files
1. Create a read-only Binance API key
- Log in to Binance, click the profile icon, then Account → API Management → Create API.
- Choose System generated (HMAC). Binance gives you an API key and a secret key.
- Give the key a label such as
whmcs-depositsand confirm with your 2FA device or passkey. - Leave Enable Reading on. Do not enable trading, withdrawals or anything else.
- Under IP access, choose Restrict access to trusted IPs only and add your server’s public IPv4 address.
- Copy the API key and secret into a password manager.
The gateway needs reading enabled with access to the wallet and deposit endpoints (GET /sapi/v1/capital/*), and your server IP on the allow-list.
A read-only key is still private
It can see your balances and deposit history. Keep the secret out of chats, screenshots and shared notes, and delete the key in API Management if you stop using the gateway.
2. Test the key from a terminal (optional)
This script asks Binance for your last 7 days of USDT deposits. Run it from a machine whose IP is on the key’s allow-list:
API_KEY="PASTE_YOUR_API_KEY"
API_SECRET="PASTE_YOUR_API_SECRET"
TS=$(( $(date +%s) * 1000 ))
START=$(( TS - 7*24*3600*1000 ))
QS="coin=USDT&startTime=${START}×tamp=${TS}&recvWindow=5000"
SIG=$(printf '%s' "$QS" | openssl dgst -sha256 -hmac "$API_SECRET" | sed 's/^.* //')
curl -s -H "X-MBX-APIKEY: ${API_KEY}" "https://api.binance.com/sapi/v1/capital/deposit/hisrec?${QS}&signature=${SIG}"
You should get a JSON list of deposits (an empty list on a new account). Errors are explained in Troubleshooting.
3. Upload the gateway files
After you order, download the package from your ShoHost account, unzip it and upload its contents to /modules/gateways/ inside your WHMCS folder, keeping the zip’s folder structure. Use cPanel File Manager (upload, then extract), SFTP, or SSH with unzip. Follow the install note in the package for file names, and do not edit the files.
4. Activate the gateway
Go to Configuration (gear icon) → System Settings → Payment Gateways (older WHMCS: Setup → Payments → Payment Gateways; current WHMCS also lists it under Apps & Integrations). Find the Binance gateway and click Activate.
Next: Configuration