An example of Google Checkout Integration in CakePHP

NOTE: You will have to make changes into the component code in order to get it working with you application. This is only a sample component and it should not be taken as a plug-and-play kind of component.
NOTE: Download the latest Google Checkout library files from here. After downloading it from this link you will have to make changes to component code where you “include” vendors files following the new file naming structure Google have laid there. As an alternate, I have attached vendors/google files with the new zip archive (This is an OLD one, it’s when i did this) but i would strongly recommend the use of new google checkout library.
I am posting an implementation of Google Checkout payment gateway in CakePHP which i had implemented an year ago in one of my client’s website. The implementation was based on the use of vendors and components. I placed all google checkout files in “app/vendors” folder and created a component to process transactions. The file structure of vendor file was something like the following:
vendors/google/calculations
vendors/google/cart
vendors/google/item
I am attaching a sample GoogleComponent with this post so that someone interested can check this component to get help in similar implementation.
Following is an example of controller action which i used to receive google callback.
public function googlecallback()    {
$this->autoRender=false;
App::import('Component', 'Google');
$this->Google = new GoogleComponent();
$this->Google->controller = $this;
$this->Google->Response();
}

Download Google Checkout Component
I hope this helps someone.

Possibly Related posts:

  1. SVN checkout wordpress plugin files
  2. getid3 component for cakephp
  3. Simple captcha component for CakePHP (New)