I am working with a payment gateway, which offers me a method to tokenize credit cards, should I send the cc data from the frontend or should I send the (encrypted) data to my backend and then to the payment gateway? All of this without being PCI complier.

1

There are 1 best solutions below

2
ChrisRoss On

Roman, If your processor has a way to send the data from the front end, this will almost always be the best choice so that you do not have to worry about possibly sending raw card information through your backend. Encryption can be tricky. If you have a public key, you are going to have to mess with that in your JavaScript before posting back to your server. If you post the raw card information back to your server, you are automatically in higher PCI scope. We integrate with a company called USIO and they have the client side tools either with a Iframe popup or embedding the fields in your page to get that sensitive information. It’s pretty easy to use and it keeps the PCI scope down for us.