WHMCS integration

A WHMCS VPS module that provisions the whole lifecycle

The VirtConsole module for WHMCS creates, suspends, upgrades and terminates virtual machines from the orders you already take. Customers choose a plan, operating system and extras at checkout, and reach their panel with one click from the WHMCS client area.

Targets WHMCS 9.x on PHP 8.2 or 8.3. The module is open source.

What it does

The lifecycle, driven from WHMCS

Creation

Create an instance on order, with optional operating system, SSH key and hostname chosen at checkout.

Suspend and unsuspend

Overdue invoices suspend the machine through WHMCS and payment resumes it.

Termination

Cancel a service in WHMCS and the instance is removed on the panel.

Upgrades

Plan changes and add-on resources are reconciled on the running instance. Downgrades are refused where the storage size would shrink.

Client actions

Power control, reinstall and password reset from the client area and the admin area.

One-click SSO

A button in the client area signs the customer in to the VirtConsole customer panel.

Order-time options

One product, many shapes

Configurable options let a single WHMCS product sell different plans, locations, operating systems and extras. The module matches options by name, so the names must be entered exactly as documented. A blank cap on the product means the extra is uncapped there, and the panel still enforces its own hard limits.

Add-on resources and panel limits
OptionWhat it addsPanel limit
Additional vCPUCores on top of the plan0 to 64
Additional RAM (GB)Memory on top of the plan0 to 512 GB
Additional Disk (GB)Storage on top of the plan0 to 5000 GB
Additional Bandwidth (TB)Transfer on top of the plan0 to 100 TB
Additional IPv4Extra IPv4 addresses0 to 20
Additional IPv6Extra IPv6 /64 subnets0 to 5

Source: VirtConsole documentation, WHMCS module. Quantities above a product cap are clamped to the cap.

Setup

Connect WHMCS in four steps

  1. 01

    Create a billing API token

    Generate it on the management server with the billing token command. Restrict it to the IP address of your WHMCS server.

  2. 02

    Copy the module into WHMCS

    Download the archive and unzip it into the WHMCS root. It already contains the modules/servers structure, including the client endpoint used for SSO and live status.

  3. 03

    Add a server

    In the WHMCS admin area add a server of type VirtConsole with your management server hostname and the token, then use Test Connection.

  4. 04

    Set up the product

    Choose the default plan and hypervisor group, apply caps, and decide which client actions customers see: power only, power plus reinstall, and so on.

Companion modules

Sell credit and resource packs too

The same archive ships two companion provisioning modules. The credits module sells top-ups for the panel's built-in hourly billing, and the packs module sells self-provisioning packs, prepaid pools of CPU, RAM, disk and IPs that customers deploy their own instances into. Both are ordinary WHMCS server modules, configured the same way as the main module.

VPS billing software | Billing and commerce

Other billing systems

Blesta, HostBill and Paymenter

First-party modules also exist for Blesta, HostBill and Paymenter, each with SSO into the panel. The Paymenter extension provisions by plan: on upgrade it sends only the new plan, so sell different plans rather than add-on options there. If you would rather not run a separate billing system, the panel's own billing covers payments, tax and invoices.

Client area

What your customer sees

On the service page the customer sees an overview card with live status, plus the actions you allowed: power control, reinstall and password reset, and a button that signs them in to the VirtConsole customer panel. The panel is where they manage firewalls, backups, networks and SSH keys, so your WHMCS client area stays simple.

Before go-live

Test each lifecycle step on its own

Straight talk

Limits worth knowing

Frequently asked questions

Keep reading

Connect WHMCS to your own panel

Install the panel, generate a billing token and put the first product on sale. The 30-day trial includes every feature.