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.

Download & Install
Download the latest version of the module.
| Version | Released | Link | Notes | 
|---|---|---|---|
| 1.0 | 2023-02-11 | download | Requires 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)

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.

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).

- Give it a Name
- Enter the hostnameof your VirtFusion management UI
- Select ModuleVirtFusion Resource Packs
- Enter the VirtFusion API token in the Passwordfield
- Tick Secure
- Save
Create a server group
Create a new Server Group and add the previously created server to it.

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

Create a product
Create a new Product.

- Product TypeOther
- Product Groupshould be the one you just created
- Product Name
- ModuleVirtFusion Resource Packs
Once the product is created, click the Module Settings tab.

- Server Groupselect the server group you created earlier
- Resource Pack IDcan be found in VirtFusion (Self Service -> Resource Packs -> ID (table column))
- Deletion DelayHow long in minutes should the system wait to delete servers when a pack is terminated
- Termination TypeWhen 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.