Skip to main content
Version: 4.1

WHMCS Resource Packs

The WHMCS Resource Pack Provisioning module is a simple module that can create, terminate, suspend and unsuspend packs of resources with a direct login bridge between WHMCS and VirtFusion.

How it works

When a customer orders a resource pack, they use the standard ordering system of WHMCS and make payment.

Once payment is complete, the pack is created and the resources are allocated to their VirtFusion account. They have an option to directly login to VirtFusion to create, manage and destroy servers.

api

Download & Install

Download the latest version of the module.

VersionReleasedLinkNotes
1.02023-02-11downloadRequires VirtFusion v2.0.1 or higher

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 (System > 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 Resource Packs
  • 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 Resource Packs

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

servers

  • Server Group select the server group you created earlier
  • Resource Pack ID can be found in VirtFusion (Self Service -> Resource Packs -> ID (table column))
  • Deletion Delay How long in minutes should the system wait to delete servers when a pack is terminated
  • Termination Type When a pack is cancelled (terminated) should the servers attached to the pack be deleted or just suspended (Need to be deleted manually)

Continue to configure the product as normal.