Google Checkout PHP Submission Question
<p>I have just started getting familiar with the Google Checkout API, but there's something I have a question about. On the Google Checkout Documentation, the only way of submitting the actual cart is via a button that is created via an <code>echo</code> call, like so <code>echo $cart-&gt;CheckoutButtonCode("LARGE");</code> This however is not what I need. I want to manually submit my cart from my PHP script. </p>

<p>However, unlike the PayPal API, there appears to be no submit type function in the Google Checkout script. After some further research, I noticed that the <code>HTML</code> examples post their fields to <code>https://sandbox.google.com/checkout/api/checkout/v2/checkout/Merchant/MERCHANT_ID_HERE</code>.</p>

<p>How can I do this in PHP? I am using their official API. This is what I have done so far:</p>

<pre><code>  $merchant_id = $google_merchant_ID;
  $merchant_key = $google_merchant_key;

  if ($enable_Google_Sandbox == 1)
  {
      $server_type = "sandbox";
  }

  $currency = $currency_code;
  $cart = new GoogleCart($merchant_id, $merchant_key, $server_type,
  $currency);

  $shop_cart = $_SESSION['cart'];

  foreach ($shop_cart as $value)
  {    
    $k_product = $value['Product'];
    $k_quantity = $value['Quantity'];
    $k_price = $value['Price'];
    $k_orderID = $_SESSION['order_id'];

    if (isset($_SESSION['Discount']))
    {
        $k_discount = $_SESSION['Discount'];

        $k_price = $k_price - $k_discount;
    }

    $cart_item = new GoogleItem($k_product, 
                           "Some Product",
                           $k_quantity,
                           $k_price);

    $cart_item-&gt;SetMerchantItemId(generateProductID());

    $cart-&gt;AddItem($cart_item);
  }

  // Specify &lt;edit-cart-url&gt;
  $cart-&gt;SetEditCartUrl("http://192.168.100.100:8888/order.php?action=showCart");

  // Specify "Return to xyz" link
  $cart-&gt;SetContinueShoppingUrl("http://192.168.100.100:8888/store.php");

  // Request buyer's phone number
  $cart-&gt;SetRequestBuyerPhone(false);
</code></pre>

<p>There's no <code>$cart-&gt;submitCart();</code> type function, so what do I do?</p>
