Latest Posts

CheckoutCFC - the one with logging

Posted on April 29, 2007, under ColdFusion | 1767 Views

Version .9 of CheckoutCFC has been released. This update provides fixes several areas of frustration and should make using Google Checkout with ColdFusion easier, specifically level 2.

Added logging=basic or logging=debug to the ini file. Setting this to debug will turn on the advanced log features such as the creation of a directory for every order and the separate logging of each action.

Supposing you had an order number of 123456 from Google Checkout, under your logs folder you would see this: logs/123456/new-order-notification.log for the new order. Each action, such as charge-amount-notification will create a file for the order in that directory containing the information that Google Checkout is sending you.

In basic mode, each order & charge notification will be logged to: logs/general/orders.log.

There is also a new setting called log_location that needs to be set to the full path for the logs folder. I'd suggest moving it out of the webroot or adding protection on that folder.

A new CFC called orders was added. This cfc is where your local functions for processing orders will be placed. The CFC is called from googleresponsehandler.cfc functions like ProcessNewOrderNotification. By adding the orders.cfc, you should be able to use CheckoutCFC without changing the two primary CFCs, googlecheckout and googleresponsehandler.

Background music for this release was the Temple of the Dog and The Crow soundtrack. I'd forgotten how good the Crow soundtrack was. "Suddenly, I heard a tapping,as if someone gently rapping, rapping at my chamber door. You heard me rapping, right?"