Friday, January 12, 2007

JessesGadgets.com: Google Checkout Customization Fun

Earlier this week I was having issues with Google Checkout. I couldn't get a dynamically created shopping cart to work with the PHP function which creates the HTML form which gets posted to Google Checkout because of the way the sample PHP functions are designed. The checkout function creates HTML to display a form with a Google Checkout image. This form includes a bunch of hidden values which are necessary to process a checkout request. To fix my problem I changed the PHP checkout code so basically everytime a user adds an item to a cart just the hidden form with hidden values is generated. This form is then posted to Google Checkout using JavaScript when a user clicks on the Google Checkout icon. Pretty clever no?

1 comment:

Beth Poliakoff said...

HERRRRRRRRRRRRRRBBBBBBBBBBBBBB