Forum Moderators: coopster

Message Too Old, No Replies

Safely sending info with PHP

receiving credit card numbers

         

FromBelgium

5:16 pm on Aug 26, 2005 (gmt 0)

10+ Year Member



Is possible to safely receive credit card info with a form and PHP? It is easy to encrypt data with PHP but then info has first to go unprotected from the user's computer to the server.

jatar_k

5:18 pm on Aug 26, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you need to have ssl cert and have the communication occur under https. It is the communication that needs to be secured first.

What do you plan on doing with the card info after that?

FromBelgium

5:39 pm on Aug 26, 2005 (gmt 0)

10+ Year Member



It's for a small e-shop and I want to use Ogone e-Terminal, which is cheaper than e-Commerce. I will have to enter manually the credit card info at the Ogone website, but then I first have to collect it. How can I securely collect it?

jatar_k

5:52 pm on Aug 26, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



as I mentioned you will need to have a secure certificate for one. Check with your host and see if they offer any certs and if they can help you to install one.

After that you need a secure method of storing them as they can not be emailed given that email is about as un secure as you can get. Most of the time they can be stored in a database. If you are on a shared host that is another issue since cc numbers sitting around in a db is not great.

You could have an admin interface (via https again) that gets all the credit card info out of the database and then allows you to download it onto your local machine. Once you check the info has been properly moved to your machine it should then be removed from the database so it can not be compromised.

The machine you download it onto will also have to be protected or the files can be deleted once you have processed the card.

FromBelgium

10:15 pm on Aug 26, 2005 (gmt 0)

10+ Year Member



I am trying to set up SSL. I get two option:
- Use generic SSL Certificate (free)
- Generate a Certificate Signing Request (CSR)

Genetic certificate works like this: To get to the "secure" area of your site, go to
[securewebexchange.com...]
Place any files you need to use over SSL in the "/secure" and "/secure-cgi-bin" directories that have been created for you in your home directory.

Which option is the best?

coopster

8:32 pm on Aug 29, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



One is probably a shared certificate provided by your shared hosting provider. The latter will be your very own for your own domain. The difference is going to be the message the end user is going to receive from their browser when the site certificate is different than the domain.