Fleio WHMCS module

Install Fleio WHMCS module

After installing Fleio backend and frontend, we need to integrate with our WHMCS platform.

Let’s assume that your WHMCS instance is installed in /var/wwww/yourdomain/client.

tar xf fleio-whmcs.tar.gz
mv fleio-whmcs /var/wwww/yourdomain/client/modules/servers/fleio
cp /var/wwww/yourdomain/client/modules/servers/fleio/fleioaddcredit.php /var/wwww/yourdomain/client/

We need now to create an authentication token that will be used by Fleio WHMCS module. We will do that from Django Admin panel that we configured in Fleio Installation section http://myadmin/backend/admin/ and login with your admin user, in our case was mysuperuser.

After loging in click on Tokens under Auth Token section, then on ADD Token from top right corner, select your admin user and click Save.

Under Key collum you will notice that a token was issued, for example 455a8ae06a4de0960f095c44dced3d0a7c101c956f. We will need this Token in the next section.

Configure Fleio WHMCS module

  • Login to WHMCS as admin and create a new product from: Setup -> Product/Services -> Product/Services -> Create New Product
  • Under Module Settings on the new product page, select the Fleio module
  • Specify in Fleio Token field the token that we have generated earlier, in our case is 455a8ae06a4de0960f095c44dced3d0a7c101c956f.
  • Frontend URL is the url of the frotend for client, in our case we have configured it to http://yourdomain
  • Frontend admin URL is the url of the frontend for staff only, in our case we have configured it to http://yourdomain/staff
  • Backend admin URL is the url of the backend API for staff API, in our case we have configured it to http://yourdomain/backend/staffapi
  • Set the Maximum and Minimum ammounts (these are used to limit the amount a user can pay for this service)