← WHMCS integration

Customer billing · Setup guide

Set up WHMCS

Set up the provisioning module, or use the separate addon alongside an existing VPN module.

Ask for the matching package →
Package
vpn_dashboard_whmcs_provisioning.zip
Install in
modules/servers/vpn_dashboard
Provider key
whmcs

01

Install the files

  1. Obtain the package matched to your dashboard version before installing.
  2. Extract it and copy the vpn_dashboard directory into modules/servers in your WHMCS installation.
  3. Create or edit a WHMCS product and choose VPN Dashboard on its Module Settings tab.

The package and dashboard must support the same billing and customer sign-in contract.

02

Add the dashboard connection

  1. In VPN Dashboard, open Settings → Billing integrations, save a connection for whmcs, then generate its API token and SSO secret. Use a separate webhook signing secret.
  2. Enter the HTTPS address of your dashboard.
  3. Enter the billing API token, SSO signing secret and webhook signing secret from the matching billing connection in VPN Dashboard.
  4. Set the provider key to whmcs, run Test Connection and add the WHMCS server public IP to the billing API allow-list.

Use whmcs for the module, billing connection and customer sign-in settings.

03

Configure the VPN product

  1. Open the product Module Settings tab, choose VPN Dashboard and set the default, minimum and maximum profile quantities plus shared or dedicated access.
  2. To let customers choose the number of profiles, attach a Configurable Option named profile_limit, vpn_dashboard_profile_limit, vpn_profiles, vpn_profile, profiles or profile_count.
  3. Choose whether WHMCS runs Create Account when the order is placed, after the first payment or only when you run it manually.

04

Add customer sign-in

The WHMCS service overview includes a signed link to the customer VPN area. The link expires after five minutes. The link can be used once. The customer must already have a provisioned billing account and an active service; no separate dashboard password is issued.

Keep the SSO signing secret private. Change it in both systems if it is ever exposed.

Connection and product settings

Connection settings apply to the module. Product settings apply to each plan.

Connection settings5 fields
Dashboard URLRequired HTTPS address
The address of your VPN Dashboard installation, without an API path.
Billing API tokenRequired secret
Copy the token from the matching billing connection in VPN Dashboard.
SSO signing secretRequired, at least 32 characters
Signs the short-lived link that takes a customer from their billing account to the VPN area.
Webhook signing secretBlank or at least 32 characters
Signs write requests from the module. Leave it blank only when the billing server IP is enforced through the API allow-list.
Provider keywhmcs
Must match the provider key on the billing connection and customer sign-in settings.
Product settings5 fields
Default profiles50 by default
Used when no recognised WHMCS configurable option supplies a quantity.
Minimum profiles1 by default
The lowest profile quantity the module accepts.
Maximum profiles10,000 by default
The highest profile quantity the module accepts.
Server access typeShared or dedicated; shared by default
Dedicated services wait for dedicated VPN server capacity.
Configurable optionOptional profile quantity
Use a recognised option name such as profile_limit when customers should choose the number of profiles.

Alternative: the WHMCS addon

Use the addon when WHMCS already has a VPN provisioning module. Choose one lifecycle path per product.

Package
vpn_dashboard_whmcs.zip
Install in
WHMCS root: modules/addons/vpn_dashboard and includes/hooks/vpn_dashboard.php
  1. Extract vpn_dashboard_whmcs.zip into the WHMCS root. It installs modules/addons/vpn_dashboard and includes/hooks/vpn_dashboard.php.
  2. Activate VPN Dashboard in System Settings → Addon Modules. Keep the existing VPN provisioning module.
  3. Enter the dashboard HTTPS address and separate API, SSO and webhook credentials. Restrict the connection to the WHMCS server.
  4. Match eligible product IDs and plan values to WHMCS_VPN_PRODUCT_LIMITS in your dashboard configuration.
  5. Select pilot and list test service IDs. Check sign-in, plan changes, suspend, restore, terminate and pilot removal before choosing all.
  • The addon uses /sso/whmcs with a service-bound, five-minute, single-use link. The provisioning module uses /sso/billing/whmcs.
  • Rollout modes are off, pilot and all. Removing an activated service from the pilot, or switching rollout off, queues revocation of its dashboard entitlement.
  • Customer entry can be disabled independently; lifecycle reconciliation continues. The addon does not alter existing FreeRADIUS accounts.
  • Lifecycle deliveries are queued for retry. Check the queue before wider rollout.
  • The documented compatibility target is WHMCS 8.13 or later. Test the exact version and customisations in use.

Where the settings are stored

WHMCS and the dashboard keep separate responsibilities.

Product module settings
Hold the connection and default plan values. These are settings for the WHMCS server module, not choices shown to customers.
Configurable Options
Are choices shown while ordering. A recognised profile option replaces Default Profiles for that service.
Service
Is the customer’s purchased product. Its WHMCS service ID becomes whmcs-{serviceId}, and the module saves that reference and profile_limit with the service.

What WHMCS does automatically

When the service changes in WHMCS, the module makes the same change in VPN Dashboard.

Create Account
Creates VPN access when WHMCS runs the module under the automation setting selected on the product.
Change Package
Updates the existing service after a paid product or Configurable Option upgrade or downgrade.
Suspend Account
Suspends VPN access when WHMCS automation or an administrator invokes the module command.
Unsuspend Account
Restores the same service after payment or a manual module command.
Terminate Account
Cancels VPN access. WHMCS decides when termination runs from its automation and cancellation settings.

Test a WHMCS order before launch

Test the exact platform version and product settings you intend to use.

  1. Order the product and pay its first invoice, then confirm Create Account runs at the automation point selected on the product.
  2. Order with a Configurable Option and confirm the selected quantity is stored as the profile_limit service property.
  3. Run a paid upgrade or downgrade and confirm Change Package updates the existing whmcs-{serviceId} service.
  4. Use the WHMCS module commands to suspend and unsuspend the service, then open the client-area action.
  5. Test the overdue and cancellation rules with short test timings before relying on the daily automation cron.
  6. Open a fresh customer sign-in link and verify that it reaches the correct account after activation.

When an account change does not reach VPN Dashboard

Start with the order or service that should have sent the change.

Create Account did not run
Check the product’s Module Settings automation choice, the invoice payment state and the WHMCS module log.
Upgrade did not change the profile limit
Confirm the option has a recognised name and WHMCS completed Change Package after the upgrade invoice was paid.
A second service appeared
Confirm WHMCS supplied the original serviceid and that the vpn_dashboard_service_id service property has not been removed.

WHMCS notes

  • The external service ID is based on the immutable WHMCS service ID.
  • The selected quantity is stored as the profile_limit service property.
  • Changing a Configurable Option only reaches VPN Dashboard when WHMCS runs Change Package for the service.
  • Credentials belong to this provider connection. Do not reuse another platform’s API token or signing secrets.