CodeIgniter Forums
codeigniter google checkout - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: codeigniter google checkout (/showthread.php?tid=57627)



codeigniter google checkout - El Forum - 03-28-2013

[eluser]alexaaaaaaaaaa[/eluser]
Hi all i'm trying to implement google checkout with codeigniter however each call i make it i get a response like this Oops! We were unable to process your request.
I have downloaded the library for the php and here's my code that i'm using

Code:
require_once('lib/googlecart.php');
  require_once('lib/googleitem.php');
  require_once('lib/googleshipping.php');
  require_once('lib/googletax.php');

$cart = new GoogleCart($params['merchantId'], $params['merchantKey'], $params['mode'], $params['currency']);  
   $item_1 = new GoogleItem("MegaSound 2GB MP3 Player", // Item name
                             "Portable MP3 player - stores 500 songs", // Item description
                             2, // Quantity
                             175.49 );
$cart->AddItem($item_1);
$cart->SetEditCartUrl("http://localhost/checkout-google/");
$cart->SetContinueShoppingUrl("http://localhost/checkout-google");
$cart->SetRequestBuyerPhone(true);
echo $cart->CheckoutButtonCode("SMALL");

Also i want to know if the EditCartUrl is the response url or what var i should add to set the response url.
Maybe you set it up in the google checkout console ?
Thank you.