XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    WHMCS integration

    Scheduled Pinned Locked Moved Xen Orchestra
    15 Posts 5 Posters 2.5k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • olivierlambertO Offline
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      It's not Open Source?

      ? 1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @olivierlambert
        last edited by

        @olivierlambert Unfortunately not... It is paid 30 euros... I wished there was an open-source variant.

        1 Reply Last reply Reply Quote 0
        • F Offline
          fred974 @Guest
          last edited by

          @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 🙂

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by

            @fred974 Although I hope someone will be developping an open-source version of this one 🙂

            1 Reply Last reply Reply Quote 0
            • R Offline
              rpurinton @olivierlambert
              last edited by

              @olivierlambert

              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 Billing

              Since 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";
              
              1 Reply Last reply Reply Quote 0
              • olivierlambertO Offline
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                I think there's already a WHMCS plugin out there for XO 🙂

                F 1 Reply Last reply Reply Quote 0
                • F Offline
                  fred974 @olivierlambert
                  last edited by

                  @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

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Hmm maybe I don't remember exactly. Anyway, Xen Orchestra got an API, so it should be relatively easy to write your own plugin 🙂

                    xerioX 1 Reply Last reply Reply Quote 0
                    • xerioX Offline
                      xerio @olivierlambert
                      last edited by

                      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 😉

                      1 Reply Last reply Reply Quote -1
                      • olivierlambertO Offline
                        olivierlambert Vates 🪐 Co-Founder CEO
                        last edited by

                        We'll be happy to assist on what you need API wise to make it real 🙂

                        1 Reply Last reply Reply Quote -1
                        • First post
                          Last post