Jump to content

mfoland

Members
  • Content count

    44
  • Joined

  • Last visited

Everything posted by mfoland

  1. mfoland

    Custom support software integration

    If the module supports WHMCS it will go in the support under modules. IF you built your OWN support software, then you will have to make it compatible with WHMCS.
  2. mfoland

    API Service ID Not Found

    I am working with the license addon to handle auto license upgrades if needed. My issue I am running into is that my script throws an error and says Service ID Not Found. Here's my API call: <?php $srvid = (int) $results['serviceid']; $newprod = (int) $results['productid'] +1; /** * WHMCS Sample API Call * * @package WHMCS * @author WHMCS Limited <development@whmcs.com> * @copyright Copyright (c) WHMCS Limited 2005-2016 * @license http://www.whmcs.com/license/ WHMCS Eula * @version $Id$ * @link http://www.whmcs.com/ */ // API Connection Details $whmcsUrl = "https://clients.bestphpscripts.com/"; // For WHMCS 7.2 and later, we recommend using an API Authentication Credential pair. // Learn more at http://docs.whmcs.com/API_Authentication_Credentials // Prior to WHMCS 7.2, an admin username and md5 hash of the admin password may be used. $username = "API USER"; $password = "API PASSWORD"; // Set post values $postfields = array( 'username' => $username, 'password' => $password, 'action' => 'UpgradeProduct', 'serviceid' => '$_GET[srvid]', 'paymentmethod' => 'offlinecc', 'newproductbillingcycle' => 'free', 'type' => 'product', 'newproductid' => '$newprod', 'responsetype' => 'json', ); // Call the API $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $whmcsUrl . 'includes/api.php'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postfields)); $response = curl_exec($ch); if (curl_error($ch)) { die('Unable to connect: ' . curl_errno($ch) . ' - ' . curl_error($ch)); } curl_close($ch); // Decode response $jsonData = json_decode($response, true); What I did as WHMCS Support said that it must be an integer, which when I echo the service id it is an integer.. If I hard code the service id it works, but when I do the php variable it will not work. It says the ID is not found. With the licensing, each user has a different service ID, so it would not be possible to code the api to work with one service id. What can I do? Thanks
  3. mfoland

    API Service ID Not Found

    It should be noted I've even done the $srvid without the $_GET so I'm not sure what's going on. That api file is apit.php in my script and is including via include('apit.php'); in my script.. so in theory it should be able to grab the id no problems. Even without the int before the service id via $results it does show the service id. I was pulling that DIRECTLY from the license call.
  4. We will generate a tornado warning or something LOL
  5. Hello, Maybe this is a question for someone that works for WHMCS.. but I'm creating a Radio CMS and I want to allow certain licenses to have a certain amount of station websites within the CMS, etc. For example we see on WHMCS https://www.whmcs.com/pricing/ they have Plus Professional, etc. What is interesting is with the license key, you have Leased- etc. How could I say CMSName Monthly Beginner etc and distinguish a certain amount of sub sites, pages, etc within the cms based on the license plan? I'd love to figure this one out. Thanks!
  6. @Kian inject news? LOL!!! That would be fun 🙂 haha. I'll give this a try. I wish WHMCS would be nice and let some of the source be available. Can you DM me? I'd love to see if you can give me some critique maybe and give a tiny bit of assistance! Thank you so much for responding 🙂 I'll give the LicensingAddonVerify hook a check!
  7. mfoland

    hi there

    Hey Welcome! Let us know if you need anything!
  8. mfoland

    Licensing Addon for Wordpress

    @seandnz Sorry about the late response... I'm still offering to help using the WHMCS Licensing Module! I build web applications that use the WHMCS Licensing system, so I'll be glad to assist you! I've also worked on a project with @shadowtek to work with WordPress for licensing a template. Let me know how I can be of assistance. Please feel free to DM me!
  9. mfoland

    Mobile Client App

    I think this would be a really neat idea! Go for it 🙂
  10. mfoland

    API from any IP

    Not to bump an old post, but I've got this to work, however, I'm wanting to upgrade a product, and I am getting Service ID Not found, when the service exists in the system.
  11. @WHMCS ChrisD is this possible?
  12. mfoland

    About licensingaddon.status

    Can you provide an example?
  13. I also want to have the license file automatically upgrade to the next product level when they extend over the amount. I actually think I figured out maybe how to do the clients.. I do it right now by product name, and do if they are at max they can't create more. I'd like to figure out how WHMCS auto upgrades you to the next product level.. hmmm
  14. I think it would be nice if there were some licensing updates such as if you create multiple types of software or scripts, you can search by name in the verification. For me I do Software Monthly Software Owned etc.. but it would be nice to have it search just the software name and if it's valid based on the key Leased- Owned- Trial- Development- then it would return as such or return that there's no license. I think there could be a ton of updates that would help the licensing system. Also, I'd love to help Beta the new versions of WHMCS. I have a development license that I can use for the sole purpose of beta since the Devleopment obviously isn't in operations! Thanks!
  15. Would I be able to participate in Beta? I would like to make some suggestions to the licensing system!

    1. mfoland

      mfoland

      @WHMCS John I do have a development license where I can do beta testing 🙂

  16. To all wondering... I've been working on scripts that have an installer and works with the licensing hand in hand. For those that need assistance or would like a build, I can assist you! The installer checks to see if an entered key is valid, and in my software scripts, I have the licensing check, so it will actively make sure the key is valid! The same works with a TRIAL license key! After the trial expires, the key expires.
  17. mfoland

    discount license

    Boy a discount license would be nice! @WHMCS ChrisD I found a comparable billing system for cheaper... and the codebase is almost all open source except for the licensing... I submitted a ticket in myself to billing. Do you think you guys could do a price match, especially since I already bought the license manager with my WHMCS, and I wouldn't want to re purchase if I switched to the competitor.
  18. @Kian I made a school closing system that actually uses the WHMCS licensing system, and does what you are wanting it to do.. to check if the license is valid before the install. I can help you do that! I also have IonCube if you'd like help encoding your project :) Sorry it took me so long to reply. I moved out of state to a new state and had a ton of things going on! I'm back and more than happy to assist you!
  19. Using wordpress: https://www.bestphpscripts.com/ We also use the License Verification system to for scripts we're building! https://www.bestphpscripts.com/clients.html?ccc=index&amp;m=licensing Clients is https://www.bestphpscripts.com/clients.html?
  20. mfoland

    Adding / editing cPanel servers: FAILED ARRAY

    Perfect, glad you got it working 🙂 Turn on auto updates!!!
  21. mfoland

    Adding / editing cPanel servers: FAILED ARRAY

    Try re-issuing the API Key. Turn on log errors as well and let me know what happens.
  22. mfoland

    Adding / editing cPanel servers: FAILED ARRAY

    Which type of server? CPanel? I'd make sure you have an API key valid to connect.
  23. Hey guys, I am working on setting up a special feature to show enabled productive addons on a licenseinfo.php Thus far, I have separated the values of the active addons since I had two fake ones in my product called Premium Product and Branding Removal. The Branding Removal will become a real available addon. For the sake of testing 2 different addons, I added the Premium Product addon. So in the if ($results['status'] == "Active") { I added THIS: $results['checkdate'] = $checkdate; $results['addons'] = str_replace("|", " \n", $results['addons']); $results['addons'] = str_replace(";", " \n", $results['addons']); $results['addons'] = str_replace("=", "= ", $results['addons']); so in my echo it has each addon on a new line as defined by replace the " with the " \n" for new line. The problem I'm running into is trying to make an array to pull the name of the addon out of the name= and display if status= Active. I'd like to make a php array loop for this. I have tried this to no avail.. including $array = array("$results['addons']"); $length = count($array); for ($i = 0; $i < $length; $i++) { print $array[$i]; } Any guidance and support would be greatly appreciated 🙂 I'd like to have options show for if addon xyz is enabled, and obviously hide branding if branding removal is set to no. I'd set default branding for my product! Thanks guys and gals! Any help from any of the guru would be appreciated as well!
  24. mfoland

    Licensing Module Configurations

    $adName = array("$addonname"); $arrlength = count($adName); for($x = 0; $x < $arrlength; $x++) { echo $adName[$x]; echo "<br>"; $adName[$x] == "$hisAddon"; } before the closing } to license.php I was hoping that this would work on the licenseinfo.php page I'm doing, and it only echos via the addons via license.php. What am I missing? I tried doing the whole array on the licenseinfo.php but still no go. @nhudson's script does work though with license.php -- which is the sample_code.php for the license manager. I've been making several updates to the license call. Any help to get the $hisAddon, which is the $adName[$x] to show on my licenseinfo.php script would be great. Of course I AM including license.php as well.
×

Important Information

By using this site, you agree to our Terms of Use & Guidelines