switch Posted September 3, 2008 Share Posted September 3, 2008 I've take a close look at the API docs, and they _appear_ to support what I'm trying to do, but before investing a lot of time in trial and error, I'm posting this to the community for some feedback. So: I want to have an order form on my main web site. The order form asks for a wide range of extra information which I am storing. After the user completes the order form, I want to do two things: 1) Create a hosting account based on a pre-existing plan (nothing complicated about this, it simply involves passing client information, plan, payment info, and creating the account). 2) I want to charge the customer $X as part of the order process for the fee I'm providing (I'm thinking I could do this by making a special hosting plan that had that amount as the setup fee) ---- Assuming I'm approaching this the right way, I see that it's very easy to create a new client in WHMCS: http://wiki.whmcs.com/API:Add_Client What I'm not so clear on is how to order a plan for that client, charge their card, get a positive response, and act accordingly. At the very least, I would need to assign the plan to the client, assign the credit card they provide, then set the order as "pending" or whatever. From there, I could log into the WHMCS admin and do things as normal. Does anyone have any thoughts or experience doing this kind of thing? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted September 3, 2008 Share Posted September 3, 2008 I guess you have seen the functions http://wiki.whmcs.com/API:Functions 0 Quote Link to comment Share on other sites More sharing options...
switch Posted September 3, 2008 Author Share Posted September 3, 2008 Yeah, thanks for pointing those out though. So the answer to my question: Can this be done? is yes? 0 Quote Link to comment Share on other sites More sharing options...
brianoz Posted September 3, 2008 Share Posted September 3, 2008 You may have to create an invoice to charge the amount, if it varies; but one way or another you will be able to do it. The only thing that may make it hard is a lack of programming experience on your behalf. 0 Quote Link to comment Share on other sites More sharing options...
switch Posted September 3, 2008 Author Share Posted September 3, 2008 The only thing that may make it hard is a lack of programming experience on your behalf. Errr... thanks I'll keep that in mind? 0 Quote Link to comment Share on other sites More sharing options...
brianoz Posted September 4, 2008 Share Posted September 4, 2008 Sorry - that wasn't intended to be unkind! It's just that sometimes people expect everything to be easy, and if the programming itself is tricky there just isn't a way to make it easy. 0 Quote Link to comment Share on other sites More sharing options...
switch Posted September 4, 2008 Author Share Posted September 4, 2008 Right, thanks! 0 Quote Link to comment Share on other sites More sharing options...
crshman Posted September 10, 2008 Share Posted September 10, 2008 Is there a way to pass the credit card information to WHMCS via the API from a custom order form? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.