Skip to content

WHMCS Direct Provisioning

The WHMCS Direct Provisioning module is a simple module that can create, terminate, suspend and unsuspend servers with a direct login bridge between WHMCS and VirtFusion.

How it works

When a customer orders a server, they use the standard ordering system of WHMCS but don't have all the confusing options of choosing a root password, operating system etc... they just order and make payment.

Once payment is complete, they have an option to directly login to VirtFusion to set up their server.

api

Which takes them straight to the setup page.

api

Download & Install

Download the latest version of the module.

Version Released Link
1.4 2022-04-06 download
1.3 2022-02-02 download
1.2 2022-01-03 download
1.1 2021-12-16 obsolete
1.0 2021-11-29 obsolete

Once downloaded, extract the archive and upload the contents of the upload directory to the root of your WHMCS installation.

Configuration

VirtFusion API credentials

As a VirtFusion administrator, create a new global API token (Configuration > Global API > Create Token)

api

Fill in the Name field and enter the IP of your WHMCS installation in the Access field (This is optional, entering an IP will lock requests to the specified IP). Then click Create.

api

Copy the generated API key to a safe place. We will need it later.

WHMCS setup

Create a server

As a WHMCS administrator, add a new server (System settings > Servers).

servers

  • Give it a Name
  • Enter the hostname of your VirtFusion management UI
  • Select Module VirtFusion Direct Provisioning
  • Enter the VirtFusion API token in the Password field
  • Tick Secure
  • Save

Create a server group

Create a new Server Group and add the previously created server to it.

servers

Create a product group

Create a new Product Group (System settings > Products/Services).

servers

Create a product

Create a new Product.

servers

  • Product Type Other
  • Product Group should be the one you just created
  • Product Name
  • Module VirtFusion Direct Provisioning

Once the product is created, click the Module Settings tab.

servers

  • Server Group select the server group you created earlier
  • Hypervisor Group ID can be found in VirtFusion (Compute Resources > Hypervisor Groups > ID (table column))
  • Package ID can be found in VirtFusion (Packages > ID (table column))

Continue to configure the product as normal.

Back to top