Jump to content

mfoland

Members
  • Content count

    44
  • Joined

  • Last visited

Community Reputation

11 Good

About mfoland

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  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

    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.
  3. 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
  4. We will generate a tornado warning or something LOL
  5. @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!
  6. mfoland

    hi there

    Hey Welcome! Let us know if you need anything!
  7. 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!
  8. mfoland

    Mobile Client App

    I think this would be a really neat idea! Go for it 🙂
  9. 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.
  10. @WHMCS ChrisD is this possible?
  11. mfoland

    About licensingaddon.status

    Can you provide an example?
  12. 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
  13. 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!
  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 🙂

×

Important Information

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