Hey, I'm using Google Checkout for a current project. I'm wondering if anyone has already done this in a CakePHP app and if they created a component for it already?
I downloaded and unzipped the library from Google Checkout ( http://code.google.com/p/google-checkout-php-sample-code/) into a folder named "googlecheckout" in the /app/vendor directory. I started creating a component named "googlecheckout" in /app/controllers/components/ and added the following lines to the top (just after the class definition of coarse): vendor('googlecheckout'.DS.'googlecart.php'); vendor('googlecheckout'.DS.'googleitem.php'); vendor('googlecheckout'.DS.'googleshipping.php'); vendor('googlecheckout'.DS.'googletax.php'); I also created a controller named "google_cart_controller.php" and included the following line at the top (just after the class definition): var $components = array('googlecheckout.php'); My thinking was that I would have to reuse the component with the above line in more than one controller. Also, The cart itself would have to be stored in the session scope. Unfortunately, I'm stuck here. I am a CakePHP noob and I am coming from a background in another programming language. Any help would be greatly appreciated!!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
