Click to See Complete Forum and Search --> : Credit card stuff


DJRobThaMan
10-27-2003, 08:22 PM
Hi,
I was wondering how you would approach coding a page where the users are able to buy things with credit cards. Would I write a credit card validator into the code? Or would it be more of a thing where I had some sort of agreement with another company (eg. paypal) for them to validate it through some sort of link to pass the info onto them? Is Perl even the language I should be using for this?


Thanks for all your help,

Douglas

jimr451
10-29-2003, 08:53 AM
Douglas,

You can certainly use Perl to code this, however, you may want to check out paypal or another service - they will let you customize the purchase page, and handle fulfillment for you. Of course, there's a transaction fee, but you'll have that anyway.

If you are handling the transaction yourself through perl, you might want to look at some existing shopping cart scripts to get a feel for how they do it. There are some simple checks you can do on a CC number, but many carts offer hooks to realtime verification services.

I'm actually working on a project with similar needs, so I've been doing some of the same research. Just make sure your solution is using a secure server to capture the CC information!

Hope this helps,

-Jim