WHMCS module

Connect WHMCS to VortexPanel so orders create, suspend, upgrade and terminate hosting accounts by themselves.

The WHMCS module ships with the Hosting Module (3.2 or newer) and needs VortexPanel 3.9.

WHMCS action What happens in VortexPanel
Create (new order) A hosting account with the product's package; the username and password are saved back to WHMCS
Suspend / Unsuspend The account is suspended or reactivated
Terminate The account and its websites are removed
Change Package The account moves to the new package; limits change at once
Change Password The customer portal password changes
Log in to control panel Single sign-on to the customer portal, from the client area and the admin area
Daily cron "Update usage" Disk and bandwidth usage are written to WHMCS

1. Create the API key

  1. In the panel's menu open Users & API, then the API keys tab, and click Create API key.
  2. Name WHMCS, role Hosting provisioning (WHMCS), allowed addresses: your WHMCS server's public IP.
  3. Click Create and copy the key. It is shown once.

This key can only manage hosting accounts. The same window has the Download WHMCS module button.

2. Upload the module

Unzip the download and upload the vortexpanel folder to modules/servers/ in WHMCS, so the file sits at modules/servers/vortexpanel/vortexpanel.php.

3. Add the server

In WHMCS: System Settings > Servers > Add New Server.

Field Value
Hostname The panel's host name, as in your panel address
Module VortexPanel
Password The API key from step 1
Port The panel port, with Override with Custom Port ticked
Secure Ticked when the panel address starts with https

Click Test Connection, save, and add the server to a server group.

4. Set up the products

Create one WHMCS product per VortexPanel package: Module Settings, module VortexPanel, your server group, and pick the Package (WHMCS reads the list from the panel). Choose automatic setup when the first payment arrives.

VortexPanel usernames are 3 to 32 lowercase letters and digits starting with a letter; WHMCS usernames are adjusted to that, and passwords shorter than 12 characters are replaced by a generated one. Both are saved back to WHMCS.

Troubleshooting

Message Fix
VortexPanel refused the API key Check the key; add the WHMCS server's public IP to the key's allowed addresses
Could not reach VortexPanel Use the host and port from the panel address; allow the WHMCS IP in the firewall
...needs a valid certificate Give the panel a real certificate in Settings > Panel SSL
Account username already exists Change the username on the WHMCS service and run Create again

Something missing or wrong? Ask on the forum or open an issue.