Jump to content

wellconnit

Level 2 Member
  • Content count

    56
  • Joined

  • Last visited

Everything posted by wellconnit

  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. 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.
  6. 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.
  7. 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!
  8. 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.
  9. 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?
  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. 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.
  12. 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.
  13. 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
  14. Hi Guys, Has anyone managed to access customer files via the API? I'm not sure if there is an API call already for it(if there is, it isn't in the doc's). Otherwise has anyone written one themselves that they are willing to provide insight on?? Thanks.
  15. 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.
  16. 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.
  17. Hi @carlswart, Completely makes sense. Thanks for posting some assistance ! Hopefully I can get it working with the reversal also. It's a shame it isn't built in functionally to WHMCS though. Would look much better where the Taxes are listed rather than as a line item. Thanks again for your help !
  18. Hi @brian!, Thanks for your response. I kind've understand the logic that it's probably not that high up WHMCS priority list because they don't allow it in their home country, however the primary language in the UK is also English yet WHMCS displays in various other languages, suggesting that they are happy to not limit their service to what suits the UK only. https://www.businesscompanion.info/en/quick-guides/pricing-and-payment/payment-surcharges This site also suggests that you are allowed to surcharge for other forms of payment, e.g. Cash / Cheque / Commercial Debit & Credit Cards. I'm not really a fan of paying for a solution like that, because at any point in time as with the custom API's WHMCS could remove the ability for the third party application to work.
  19. Sorry to hijack this thread, but in the reverse way to what's been suggested, Could using a promotion hook be reversed to add a secondary tax to an invoice? Currently for Australia I have GST. But if we could use a hook to add a reverse 'Promotion' then we could +2% as an additional tax.(Purpose is to charge a fee based on a gateway choice - which has been a request for almost as many years as the above request, so not holding my breath..) Any help with this is great. Thanks.
  20. wellconnit

    PDF Invoices via API

    Upon further investigation I believe this error can be attributed to WHMCS stupidly disabling Custom API's in 7.4 without providing a real platform for external users to fix 'feature holes' within the system. Using Modules isn't really a convinient way to solve the issues that have been brought about by restricting the use of API calls. If anyone has any insight on this I'd be happy to test it out. Thanks.
  21. wellconnit

    PDF Invoices via API

    Hi Guys, A much asked for feature over the last few years for API users has been the ability to retrieve PDF Invoices from the system. I stumbled across a link from The Wandering System Admin who has done a great job at dissecting the system and getting it to spit out a PDF invoice. (http://thewanderingsysadmin.net/?p=35) However I'm having a bit of trouble getting it working. I've created the request and passed it $username,$password & a static invoice ID of 10 however I'm getting a response of, I've created the api request file in /includes/api/genpdffile.php however it's still not working. Happy to drop the working code once I get it, because I know a few people are looking for it on here, and WHMCS support are yet to implement this natively. Thanks to anyone with any ideas. Anyone can follow the ticket if they want to keep updated on the issue.
  22. wellconnit

    Result URL for Payments

    After looking at logs it seems that the return URL is being called from the IP address of the payment processor which is causing a lost session for the user, does anyone have any best practice ideas for how this should be resolved ??
  23. wellconnit

    Result URL for Payments

    Hi guys, I've almost finished developing a custom payment gateway, however when I submit and it posts I've set the return url(not the callback) to /viewinvoice?id=#### and there is a problem somewhere The callback is separate and is set to modules/gateways/callback/nabtransact.php But it returns me a page with no CSS and a login box which suggests it's logged out or lost the login cookie in the process. The address bar shows the payment gateway target but the page does not correspond. Any ideas are appreciated. Thanks
  24. Hi Guys, I'm trying to integrate my WHMCS install with my banks payment gateway, they don't have the best documentation but I think i'm on the right track. I've got the preferences sorted and I think i'm most of the way there on getting the capture correct. But there are a few things i'm confused with, mainly the result url? The callback file is used for 3D secure transactions only is it not? I've added what I've done and the integration guide from the bank, hoping someone can take a look and let me know what I should use as a result url, The service doesn't allow for refunds automatically and I've removed the 3D secure function also. Just looking at getting the capture right then I can copy the concept to the other function, Also the documentation from WHMCS is a little lacking. How do we know what parameters are available and for something like the URL i've defined with the test & the live how do I reference the value of that variable? Any help with this is greatly appreciated. Thanks. nabtransact.php Direct_Post_Integration_Guide.pdf
  25. wellconnit

    Custom Payment Gateway Question

    Hi @Logicmaker Softwares I've changed quite a bit of the code as the original wasn't working as designed. It's now posting to NAB, but I'm getting an error when it executes so I'm not entirely sure why it's failing, i'm guessing a field doesn't correspond with what it should. Waiting to hear back from the bank. I'm not up for paying for a custom produced payment gateway, so if anyone else from Australia is interested in giving me a hand to get it finished I'd be grateful. More up to date files are attached to this post. nabtransact.php nabtransact callback.php Direct_Post_Integration_Guide.pdf
×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated