Search code examples
phpe-commerceshopping-cartgoogle-checkout

Shopping cart solution WITHOUT template


I am working on redesigning a website for my fathers business based on the results of a design project I did in a class last year. The design is fairly complex but everyone who has seen it loves it. The issue I am running into is finding a good shopping cart solution that does not force an entire eCommerce 'storefront' on you.

Ill probably just end up rolling my own, I am a good programmer, but have not had to code for a security critical application like a shopping cart so I would like to avoid this portion of the coding if possible.

Ideally I would like to find a simple secure PHP shopping cart that I can add to as needed (rather than having to rip a shopping cart out of some larger eCommerce solution). Failing that, does anyone have any good suggestions on reading that could guide me in creating my own, secure, shopping cart implementation?


Solution

  • The Google Checkout XML API allows you to handle all the cart operations yourself. A basic implementation could merely implement the checkout operation, and handle order processing through the Google Merchant Centre.

    There's plenty of code and detail on their website, and it essentially boils down to submitting XML documents via POST requests between your server and the Google servers. There is also a HTML API as an option, although I've only ever used the XML API.