PixelPaul Posted April 21, 2019 Share Posted April 21, 2019 Hello, Does anyone know the code to decrypt the clients Credit Card details. the date and number ( which i believe is where the stripe token is saved too ) I want to implement a new stripe payment method, but i can not get the token as it is encrypted. i have the hash from my config to do it, just not sure how. 0 Quote Link to comment Share on other sites More sharing options...
PixelPaul Posted April 21, 2019 Author Share Posted April 21, 2019 i would actually like the code to also encrypt it too, so i can save new tokens to the database 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted April 22, 2019 Share Posted April 22, 2019 Gateway tokens are stored in the gatewayid property of WHMCS\Userr\Client object and named slightly different IIRC in API calls and in the database. If you're already using Stripe, then the card details beyond the expiration should not be stored. Didn't look to hard on decrypting by script and inputting via API as that requires the full PCI forms. 0 Quote Link to comment Share on other sites More sharing options...
yggdrasil Posted April 28, 2019 Share Posted April 28, 2019 If you are using stripe I believe the idea of the tokens is that CC details are not stored on your database/site in the first place. Only a token is stored on your site, and the last 4 numbers and expiration date. The full CC details are stored on Stripe. The token is only used to identify the CC/customer details in order to bill them. If what I stated is correct, you cannot decrypt anything because no CC details are stored on your database. That way, if your database or sites get compromised, there is no financial data stored on your server. 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.