- Package
- vpn_dashboard_whmcs_provisioning.zip
- Install in
modules/servers/vpn_dashboard- Provider key
whmcs
01
Install the files
- Obtain the package matched to your dashboard version before installing.
- Extract it and copy the vpn_dashboard directory into modules/servers in your WHMCS installation.
- 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
- 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.
- Enter the HTTPS address of your dashboard.
- Enter the billing API token, SSO signing secret and webhook signing secret from the matching billing connection in VPN Dashboard.
- 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
- Open the product Module Settings tab, choose VPN Dashboard and set the default, minimum and maximum profile quantities plus shared or dedicated access.
- 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.
- 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
Product settings5 fields
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
- Extract vpn_dashboard_whmcs.zip into the WHMCS root. It installs modules/addons/vpn_dashboard and includes/hooks/vpn_dashboard.php.
- Activate VPN Dashboard in System Settings → Addon Modules. Keep the existing VPN provisioning module.
- Enter the dashboard HTTPS address and separate API, SSO and webhook credentials. Restrict the connection to the WHMCS server.
- Match eligible product IDs and plan values to WHMCS_VPN_PRODUCT_LIMITS in your dashboard configuration.
- 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.
- Order the product and pay its first invoice, then confirm Create Account runs at the automation point selected on the product.
- Order with a Configurable Option and confirm the selected quantity is stored as the profile_limit service property.
- Run a paid upgrade or downgrade and confirm Change Package updates the existing whmcs-{serviceId} service.
- Use the WHMCS module commands to suspend and unsuspend the service, then open the client-area action.
- Test the overdue and cancellation rules with short test timings before relying on the daily automation cron.
- 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.