Jump to content

wellconnit

Level 2 Member
  • Content count

    56
  • Joined

  • Last visited

Community Reputation

10 Good

About wellconnit

  • Rank
    Level 2 Member

Recent Profile Visitors

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

  1. @57881-kian Thanks for the prompt response ! I've never noticed that button, I'll have to look for it next time I put in my own domain orders. Shame there isn't just a tickbox that'd do it automatically. Thanks !
  2. Hi All, Currently if I go into the WHMCS admin and create a new order for a domain it will generate an invoice for the customer, but it won't automatically register the domain, I'm assuming because payment hasn't been made, is there a way to get it to register the domain only for admin created orders?(if an admin has created it I am happy to take the risk that the customer will pay for it within my terms). Any hints on this are much appreciated. Thanks !
  3. wellconnit

    Extending API?

    Hi @WHMCS Nate, I definitely look forward to going over that documentation to try and help with getting things working that aren't available out of the box. Just on that point, I found a bug in the API, #CORE-11360, it was related to GetTLDPricing and someone broke the functionality. It was only when I brought it to support's attention that it ended up getting fixed in a subsequent release. Again, I understand that not all scenario's can be accounted for due to obvious reasons, but if WHMCS can release software that has issues and then wait until the next version to patch them, I believe that it should be the prerogative of the developer to include these things in their own website. Just my 2 cents. Thanks for the content though !
  4. wellconnit

    Extending API?

    Hi @WHMCS Nate, Thank you for the most concise response to any API query I have seen so far. I do agree that it's a dangerous path to try and 'hack' together an API or custom call and expect it to work perpetually with so many changes that happens to software. As much as I agree with this, and I understand completely that there are not a Microsoft size team of developers working on the software, if I'm happy to take the risk of something breaking due to an upgrade that breaks the code I've written, then it should be up to the dev to take the risk, same as with any other piece of software. Due to missing API functionality something as simple as Getting customer uploaded files from WHMCS is not accessible, I've had to write an SQL query to pull that data out of the system and because I can't write an API call it needs to be in a separate container and separate function to get this cleanly into the site. Same with updating a user login? I can display the last login to the user, but I can't then update it to show when they've logged in via my own website? So I had to SQL that also? These should be simple, when the dev's write the get API they should write the set API too? The biggest 'omitted' feature in the API from my view is the ability to pull PDF files out of the system and into an external system? It's impossible to let the customer get their invoice, I understand that it's created on the fly, but there should be some sort of a way to get it going. There's been a working example online from one user, however I haven't been able to get that working on 7.5 http://thewanderingsysadmin.net/?p=35#comment-8709 I'm very very happy to take the time to learn how to create an add-on module and then extend it with a return call however there is less than zero documentation on how to even think about beginning a process like this? Which makes it hard for someone like me who wants to improve as a developer + wants to try stay within the rules; if you can put me in the right direction to get something like that sorted that'd be great and I'm sure it'd be a platform for others to use also. If you do have any assistance material or documentation on how we can get things started that'd be much appreciated. Thanks !
  5. wellconnit

    Client File Access via API

    Was really just showing a bit of an example of how it can be done. If you'd like to post an example of how you'd make it more secure i'm sure it'd help many of the other users on here.
  6. wellconnit

    Client File Access via API

    Hi All, I've written some PHP to extract client files from the WHMCS database because it's not a native API call. Just opened the thread to share it with anyone who may want to use it. I'm working on another to update the Last Login details also. Create the SQL Connection then Get the Files List - Pass $userID as the clientID - While loop ensures all records are put into the arrary function getfiles($userID) { $conn = new mysqli('DBAddress', 'DBUser', 'DBPW', 'DBName') $result = $conn->query("SELECT * FROM `tblclientsfiles` WHERE userid = $userID"); $rows = array(); while($row = $result->fetch_assoc()) { $rows[] = $row; } return $rows; } $filesData = getfiles($userID); for ($counter = 0; $counter < count($rows); $counter++) { $split = explode("_", $filesData[$counter]['filename']); echo "<tr><td>" . $split['1'] . "</td><td><a href='WHMCSWebsite/attachments" .$filesData[$counter]['filename']. "'>Download</a></td></tr>"; } That should be enough for people to be able to extract the files list and display it through the API.
  7. wellconnit

    Password Reset VIA API

    Yeah you could, however if someone was to type in an email address of someone that had an account it would reset their password without them actually requesting it, The UpdateClient API method will allow you to update a password, but won't let you send a verification email to check that it's actually the owner of the email address that has requested the password reset in the first place, which rules that process out. Unfortunately not a viable solution.
  8. wellconnit

    Password Reset VIA API

    Hi Intel, That's of no help whatsoever?. What part out of the two posts are going to assist with making a Forgot Password method?
  9. wellconnit

    Password Reset VIA API

    Hi All, Has anyone successfully worked out a way to generate a forgotten password email from the WHMCS API? It's all good to be able to login to the system but if the user has forgotten their password it's pointless getting them to sign into the WHMCS version of the site when you're using the API to make sure they don't hit that site in the first place? It seems strange that this isn't native to WHMCS already as it aligns with the login process of the normal page? Any help with this is greatly appreciated.. Thanks!
  10. Hi All, Does anyone know if it is possible to make a payment through a custom gateway from outside the WHMCS system? I want to let users pay with a credit card using my custom payment gateway through my own website rather than the WHMCS website, since the API does not have any function built in for payment of invoices from the remote API I was going to try and reference the payment gateway file directly. Is there a clean way to pass through the variables that the payment gateway is looking for or should I $_POST the variables and then just overwrite whatever the gateway file is looking for so that I don't need to change the gateway code that currently functions? Not sure if I will have to manually run the remote API command to AddInvoicePayment to the system depending on whether it is processed or not. Thinking about it like that could this be seen as a functional way of completing a payment? If someone has a cleaner/simpler solution I'd be happy to hear it? Thanks in advance
  11. wellconnit

    How to use hooks to update invoice

    Hi @sol2010, I feel your pain. If you do want it for a particular user I can't imagine it's harder than adding an IF statement at the top of the hook to compare the client ID with your clients ID and then add accordingly. Please let me know if you do get it working as I haven't had the chance to try implement this in my own installation yet. Thanks.
  12. wellconnit

    How to use hooks to update invoice

    Hi @DougK94, Yeah i've seen those, however not happy to spend $70 to get something that is a basic function. And if WHMCS decide to change their stance on however the module adds that fee then it will stop working. + trying to increase my skills when it comes to writing code so would be nice to do it myself. Thanks Anyway
  13. Hi All, Has anyone had any experience with a hook updating an invoice? I want to use InvoicePaidPreEmail to append a credit card fee to the invoice. I understand WHMCS is not willing to budge on per Gateway charges, but I can disclose to my customers that there is a credit card fee of x% and then send the right payment value to the bank, once it returns as approved I can then append it to the invoice and prior to the email being sent it will now include the charge on the invoice. Any help with this is appreciated.
  14. wellconnit

    Access Data via SQL over the Remote API

    Hi, Yeah I understand the point of the API, however unfortunately with WHMCS making the decision to remove all custom API's and there being no default API to retrieve the files that are listed on a clients account, i'm forced to start looking for alternate ways to extract the data. Unless you know how to activate custom API's on the newer versions of WHMCS? In terms of the SQL access I was thinking even maybe just doing a html include on a file that had the DB credentials so that I don't need to store them in an additional spot incase the credentials change or the installation moves I won't have to worry about updating multiple locations.
  15. Hi All, I've been looking for a while to find a solution to how I can display users files in a remote API session. Just wondering if anyone has any experience accessing the database across the remote API, I'd rather not write into the page credentials to access the DB, as secure as it may be. As the API seems to have a few gaps in functionality, I'm planning on running SELECT * FROM `tblclientsfiles` WHERE userid = apiuserid Which will give me the information I need to display links to each of the files and their titles. Any help or examples on how to interface with the DB is much appreciated.
×

Important Information

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