Page 1 of 1

PHP and ECommerce

Posted: Fri Sep 01, 2006 7:27 am
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 :?

Posted: Fri Sep 01, 2006 8:55 am
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.