Jump to content

manually adding cc info


guyc

Recommended Posts

we had a list of 300 users with their credit card info that we didn't want to insert manually. We ran a script on the database and inserted the info into the tblclients tblcustomfieldsvalues tables.

 

Our concern is only the expiration date as we left the credit number blank (we use token instead)

 

In the tblclients table the expiration date of the credit is encrypted using AES_ENCRYPT with a hash. yesterday we entered all the info into the table using the had we got when running query log and saw what was used to extract the data. Today the hash changed and we had to run the script again with the new hash.

 

Does this hash changes on a daily basis and the entire exp date in the db is updated with it? If so, should there be another table where we should put the client id to be updated? If not, why did the hash changed?

 

Thanks

Link to comment
Share on other sites

I would suggest using the API to enter this data. The API will take care of the encryption for you.

 

$postfields["username"] =  $whmcsAdmin;
$postfields["password"] = $whmcsPass;
$postfields["action"] = "updateclient";
$postfields["clientid"] = $clientid;
$postfields["cardnum"] = $cardnum;
$postfields["cardtype"] = $cardtype;  # <-- (Example: MC, VI, DS, AR, DC, JC)
$postfields["expdate"] = $expdate;  # <-- (In format of MMYY)

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