ericzou Posted July 21, 2008 Share Posted July 21, 2008 Ok. I have my order form. there is what i want to do: the customer fill out the name, address, cc info and click submit button and the information will get pass into WHMCS database - a new client is created a new order is created, and the cc info is saved for future billing purpose. I image it should be simple, call the 'add client' API and then call the 'add order' api. but i didn't find any place that i can pass in the cc info. am i miss anything here? I am sure WHMCS can save CC info, but how do i pass cc info in to WHMCS then? Thanks 0 Quote Link to comment Share on other sites More sharing options...
crshman Posted September 10, 2008 Share Posted September 10, 2008 I would also like to know if/how this can be done. 0 Quote Link to comment Share on other sites More sharing options...
Summy Posted September 12, 2008 Share Posted September 12, 2008 I have just checked the API, as just about to start coding my own order form implementation. It seems the only way to submit card information using the API is to first use the "Add Client" function, which then returns the client_id of the freshly inserted client. You then would need to use the "Update Client" function, passing in the client_id value, along with the credit card information to be added. Seems a bit odd that you can't submit credit card information directly when using the add client function, maybe Matt/WHMCS can expand on the best way to submit credit card information for new customers at the order process? Either way in theory it doesn't present a problem, so long as those cc details get stored with that client. 0 Quote Link to comment Share on other sites More sharing options...
Summy Posted September 13, 2008 Share Posted September 13, 2008 I asked whmcs and they said this would be the correct way to do what you need. 0 Quote Link to comment Share on other sites More sharing options...
pbhosting Posted October 8, 2008 Share Posted October 8, 2008 just a dumb question, but honestly, why would you want to store credit card info. i mean my customers provide it, i use it, then its destroyed. id be afraid of the DB being hacked. even with the best security and firewalls in place, DB can still be hacked. either from inside, or outside sources. worried? yes, i am, i dont want to go through the nightmare of it! lol 0 Quote Link to comment Share on other sites More sharing options...
redrat Posted October 8, 2008 Share Posted October 8, 2008 I'm with pbhosting on this. It seems to court disaster. I would not allow my own credit card details to be handled in such a fashion. 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.