WHMCS Reseller #
This is our reseller WHMCS module. Adds WHMCS Integration with SynergyCP for resellers including automated sub-client account creation and suspension. Provides basic server controls within WHMCS.
Setup #
Upload the WHMCS module #
- Download and extract the WHMCS integration from here
- Copy the entire directory via FTP, SCP, etc. to your WHMCS server at
<WHMCS_PATH>/modules/servers/synergycpreseller/
If upgrading to the latest release of the WHMCS module, please delete the entire /synergycpreseller/ directory before uploading the new one. No server or user data will be lost as nothing is stored in the /synergycpreseller/
directory.
Configure SynergyCP #
- In SynergyCP, go to System > Integrations.
- Add an Integration for WHMCS.
- Edit the Integration and make sure it has the following permissions:
- Clients (View & Edit)
- Installs (View & Edit)
- Servers In Use (View & Edit)
- Servers In Inventory (View & Edit)
- IP Entities (View)
- IP Groups (View)
- Create an API Key for the Integration, and copy the key.
Create the “Server” in WHMCS #
- Go to WHMCS Admin -> Wrench icon -> System Settings -> Servers
- Add New Server
- Name: SynergyCP
- Hostname: The hostname of the SynergyCP API - this should start with
api.
- Scroll down to Server Details
- Type: Synergy Control Panel - Reseller
- Access Hash:
<API Key of SynergyCP Integration>
- Ignore other fields such as username and password.
Adding a New Product #
- Go to WHMCS Admin -> Wrench icon -> System Settings -> Product/Services
- Create a new Product/Service with type “Reseller Account” and whatever name you want.
- Go to the Module Settings tab and fill in the following details:
- Module Name: Synergy Control Panel - Reseller
- The remaining fields as described on that page.
- Go to the Custom Fields tab and create one with the following details:
- Field Name: SynergyCP Server ID (name must match exactly)
- Field Type: Text Box
- Description: The ID of the server form SynergyCP. Found in the manage server page URL.
- Validation: [0-9]
- Check Admin Only and Required Field.
Link Server(s) #
- Create a test order using the newly created Product/Service and a test client.
- Go to SynergyCP, click on a server, and look at the URL. The Server ID is the number that is the last part of the path in the URL (before the question mark).
- Copy that Server ID over to the SynergyCP Server ID field of the server in WHMCS.
- Note that this step will need to be done for every new order to link it to your server in SynergyCP.
Test #
- Login as the client, view the service, and check that the buttons are working as expected.
- Bandwidth data can take up to 24 hours to sync. If it has not synced after that point, make sure that the WHMCS cron is setup properly.