WHMCS integration
-
https://xen-orchestra.com/forum/topic/401/whmcs-integration
Maybe we should create a dedicated topic to it here
-
@olivierlambert said in WHMCS integration:
Maybe we should create a dedicated topic to it here
Yes, this will be awesome.
Do you know if the code is available somewhere? I saw a lot of people asking but no reply from the @fagnerlins -
Nope, but maybe it's somewhere on the web?
-
Sorry for bumping, but there is now.
The WHMCS module is called: Xenica
Link: https://whmcs.community/topic/291143-xenica-31-citrix-xenserver-managment-and-autoprovisionning-module-for-whmcs/ -
It's not Open Source?
-
@olivierlambert Unfortunately not... It is paid 30 euros... I wished there was an open-source variant.
-
@JulianFRL said in WHMCS integration:
Sorry for bumping, but there is now.
The WHMCS module is called: Xenica
Link: https://whmcs.community/topic/291143-xenica-31-citrix-xenserver-managment-and-autoprovisionning-module-for-whmcs/Thank you very much for the link
-
@fred974 Although I hope someone will be developping an open-source version of this one
-
There is several different ways that XenOrchestra and WHMCS could potentially interact.
Main Features of WHMCS
*Monthly Invoicing System for Hosting Companies
*Client Portal for Hosting Clients
*Auto-Provisioning/De-Provisioning features upon Order completion / Payment verification
*CRM, List of Accounts, Contacts Per Account, Contact Permissions/Functions
*Resouce Usage BillingSince I already have my clients email addresses, and their contacts emails with password, I should be able to create an AUTH plugin atleast so that I dont need users to keep 2 sets of passwords?
I already have this working ... maybe it can be made into an auth plugin easily?
<?php session_start(); if(isset($_GET["email"]) && isset($_GET["password"])) { $_SESSION["email"] = $_GET["email"]; $_SESSION["password"] = $_GET["password"]; } if($_SESSION["email"] != "" && $_SESSION["password"] != "") { $url = "https://www.mywhmcs.net/includes/api.php"; # URL to WHMCS API file $username = "Russell"; # Admin username goes here $password = "russellspassword"; # Admin password goes here $postfields["username"] = $username; $postfields["password"] = md5($password); $postfields["action"] = "validatelogin"; $postfields["email"] = $_SESSION['email']; $postfields["password2"] = $_SESSION['password']; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = explode(";",$data); foreach ($data AS $temp) { $temp = explode("=",$temp); $results[$temp[0]] = $temp[1]; } } else { session_destroy(); } $loggedIn = $results["result"] == "success";
-
I think there's already a WHMCS plugin out there for XO
-
@olivierlambert said in WHMCS integration:
I think there's already a WHMCS plugin out there for XO
is that it?
https://marketplace.whmcs.com/product/4958 -
Hmm maybe I don't remember exactly. Anyway, Xen Orchestra got an API, so it should be relatively easy to write your own plugin
-
For anybody that ends up on this old discussion regarding the Xenica WHMCS addon. It might be interesting to know that they charge $30 per month and it seems not to have been maintained in a very long time.
For vmware there is a suite of scripts with working examples, for Xen Orchestra we have the API set, but it would still be very beneficial to get the original plan of @olivierlambert in this blog post, back on track.I could provide a WHMCS test setup, people for testing (agents of hosting companies), and participate as much as my limited programming skills allow
-
We'll be happy to assist on what you need API wise to make it real