bhorton Posted October 15, 2009 Share Posted October 15, 2009 Hello All, I'm setting up a custom order form as we're using WHMCS for something other than hosting. I used the API to create the client record but now I'm trying to add the client's credit card information. I saw in another post that this should be done through the updateclient API but I can't get it to work. My code is: $postfields["username"] = $whmcs_user; $postfields["password"] = md5($pw); $postfields["action"] = "updateclient"; $postfields["clientid"]="$whmcs_client_id"; $postfields["cardtype"] = "$card_type"; $postfields["cardnum"] = "$card_num"; $postfields["expdate"] = "$exp_month/$exp_year"; It returns a success message and the card type is set but the card number and expiration date is blank. Please don't let this question turn into a debate on whether or not cards should be stored in the database. We're not permanently storing them. This is just part of the initial setup process we need. Thanks for your help! 0 Quote Link to comment Share on other sites More sharing options...
donmarcos Posted October 18, 2009 Share Posted October 18, 2009 bhorton you can use the whmcs api to update that particular cc account , I do that on a backend cms system that users login (not whcms) to update their account info, and no I do not store the cc anywhere else but whcms which it is encrypted 0 Quote Link to comment Share on other sites More sharing options...
Justin L Posted November 10, 2009 Share Posted November 10, 2009 I used to be able to use the api to update credit card numbers, but that was before upgrading to V4. I really dont like when api functionality changes, so I'm currently trying to figure out how to do this. 0 Quote Link to comment Share on other sites More sharing options...
Justin L Posted November 10, 2009 Share Posted November 10, 2009 I think the minor patch to 4.1.2 just fixed this issue 0 Quote Link to comment Share on other sites More sharing options...
banar Posted November 23, 2010 Share Posted November 23, 2010 Did you guys find the solution? We use 4.3.1 and update_client API function works pretty good but we cannot update cc number. For example: When we try to save cc number through API and the card # is 378282246310005 after it's saved. I login to WHMCS, enter hash to see full card number and I get "¯a)-ØîéX•è ᪥n" Very weird. Please help. 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.