views:

79

answers:

2

Possible Duplicate:
Storing credit card details

There are many sites that stores the Credit card information. I too, in one of my application , need to store the credit card information in database. But I don't have any idea how to store them. I found somewhere that we can split the credit card numbers in parts and the encrypt them before storing it to database. Although it seems that a good idea, I am curious how the renowned sites like Paypal and amazon.com are doing it. Does anyone know how they are storing the credit card information?

+5  A: 

If you have to ask this kind of question, you almost certainly shouldn't be storing credit card information. It's tricky to get right, and if you make even one small mistake you could cause a lot of problems for a lot of people.

I'd suggest outsourcing it to one of the larger payment processors, so that you don't have to deal with it.

If you want to start learning about the challenges you face, take a look at the Data Security Standards from the payment card industry.

Steven Schlansker
+1 for the DSS link :)
elo80ka
Thanks for the link. But I have already gone through it. And I have the absolute concrete requirement that the credit card information should be stored in our system. Otherwise I wouldn't have asked this question :)I have already created a model to store it with encryption by a key and the key being rotated for every credit card number. But still I want to have an idea how these sites are storing the information.
SP249
A: 

There are many things that need to be done to ensure the card data is secure. What companies you mentioned, PayPal, Amazon and other PaymentsGateway, have gone through is expensive and time consuming. They have to go through annual audits based upon Payment Card Industry standards (PCI). If you choose to go this route, keep in mind that it is expensive to get compliant and espensive to stay compliant.

Another option would be to outsouce the storage of the credit card data to a company that is in compliance with the card storage rules. There are companies out there that store the data and provide you back a token you can use to call the payment data to update or charge.

One that I prefer is: www.paymentsgateway.com

PaymentGuy