PHP and ECommerce

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jfbakker
Forum Newbie
Posts: 2
Joined: Fri Mar 03, 2006 2:59 pm
Location: Sevilla - Spain

PHP and ECommerce

Post by jfbakker »

Hello,

We have a virtual shop built by me in PHP with a MySQL database. This shop holds the product catalogue and does all the order taking and client registration. Until recently our shop has mainly been an online management tool i.e. our clients did not pay on line for the products they ordered through our shop. Things are changing however, and we need our customers to be able to pay by credit card for our products.

How do I pass order data from our virtual shop to the pay site using PHP and how will my virtual shop update the payment status as it is sent back from the pay site?

Best regards,
FRANS BAKKER :?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

It all depends on the payment gateway.

I've integrated a few different credit card payment systems into sites, one runs a Java client on the server which PHP connects to using a socket ( fopen() ), another passes XML over an SSL connection using cURL. There's lots of other ways to do it too. All of them have APIs available for developers. Read them and figure out the best solution for the gateway you've chosen to go with.
Post Reply