by MBCook · 14y ago · 0 comments
No putting them in a DB, no putting the in a log file (not even the last four or something like that), nothing. So if your form takes the numbers in, you make an API call, and then you blank them in memory you were OK.
If you put them in the user's session, you were in trouble.
It's all insanely complicated, and the only good solution is "don't do it." There's a good reason people use things like Stripe, PayPal, Authorize.net's CIM (where they store it and certify that they are PCI compliant).
Having the card never go to your server is the best way to make sure you are PCI compliant, as you mention.
From data security standpoint is is easier to let somebody else do it, but end users tend to have a less satisfying checkout experience.
This is by no means my area of expertise (as I have accidentally proven).