Buy things online

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Buy things online

Post by Skara »

To cut to the chase, anyone know how to do this really simply without something like PayPal?

================
To break things down, here's what's going on:

Above ground pool site.

Obviously they'll only be purchasing one, so there's no need for a shopping cart or anything fancy.

I can work out how it all interlocks later, but basically I want this:

A page with the picture, info, yada yada on it. If they want it, they click the "buy" button. They enter their name, shipping address, etc, and credit card number.

================
So:

First, I need to figure out how to validate credit cards.

Second, I need to know how to charge the credit card to some account. (This is the doozy.)

Third, I need to figure out how to calculate shipping by using a zipcode. (I'll need UPS/FedEx/Whoever's info for this. Hopefully it won't be much of a problem.)

================
That said, is there an easy(ish) way to do this? A nice class/program somewhere? Anything?
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

I think this is a job for an experienced programmer well-versed in the security issues of ecommerce.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

I think you should use paypal. :P
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

third party credit card processors are the best way i feel to hand cc validation.
There are many issues involved with the handling of cc's and not just security all that would be the biggest in my mind.
You need to get your site validated by the different cc companies to meet their requirements and the like.

You can still collect there name, shipping address, and other relevant info because you will need that.

Secondaly you should do some quick searching as there are many good and quite often inexpensive or free shopping carts out there.

If you want to create your own and don't have much php experience either hire a programmer to do it for you or learn (x)html, php, mysql and we will help you when you get stuck.

If you want more info just ask.
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post by Skara »

well, I'm not a newb, but doing the cc part would be a challenge. I think I'm going to go with Zen Cart, although it'll need a lot of customization. ;)
Post Reply