Welcome Guest, Not a member yet? Register   Sign In
codeigniter google checkout
#1

[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.





Theme © iAndrew 2016 - Forum software by © MyBB