Jump to content

how do i pass the credit card information in to WHMCS database?


ericzou

Recommended Posts

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

Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

  • 4 weeks later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

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