title: How can I redirect a customer back to my website after a successful payment with Google Checkout?
body: <p>I am doing a shopping cart with Google Checkout. I integrated Paypal already like below:</p>
  
  <pre><code>&lt;form name="frmpay" method="post" action="success.php"&gt;
        &lt;input type="hidden" name="business" value="" /&gt;
      &lt;input type="hidden" name="cmd" value="_xclick" /&gt;
      &lt;input type="hidden" name="image_url" value="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" /&gt;
        &lt;input type="hidden" name="return" value="success.php" /&gt;
      &lt;input type="hidden" name="cancel_return" value="error.php" /&gt;
      &lt;input type="hidden" name="currency_code" value="GBP" /&gt;
      &lt;input type="hidden" name="lc" value="UK" /&gt;
      &lt;input type="hidden" name="no_shipping" value="1"&gt;
      &lt;input type="hidden" name="item_name" value="&lt;?=$res_item[name]?&gt;" /&gt;
      &lt;input type="hidden" name="amount" value="&lt;?=$_SESSION['amt']?&gt;" /&gt;
      &lt;?php /*?&gt;&lt;input type="hidden" name="shipping" value="&lt;?=$_POST["shipping"]?&gt;" /&gt;&lt;?php */?&gt;
      &lt;input type="hidden" name="quantity" value="1" /&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <p>How can I integrate Google Checkout like this? How can I return success page after payment in Google checkout? What is the input type for redirect url after successful payment in Google Checkout? I tried a lot for this but I did not get anywhere.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;form method="POST" action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/REPLACE_WITH_YOUR_SANDBOX_MERCHANT_ID" accept-charset="utf-8"&gt;
  &lt;!-- No product --&gt;
  
  &lt;!-- No tax code --&gt;
  
  &lt;!-- No shipping code --&gt;
  
  &lt;input type="hidden" name="_charset_" /&gt;
  
  &lt;!-- Button code --&gt;
  &lt;input type="image"
    name="Google Checkout"
    alt="Fast checkout through Google"
    src="http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=REPLACE_WITH_YOUR_SANDBOX_MERCHANT_ID&amp;w=180&amp;h=46&amp;style=white&amp;variant=text&amp;loc=en_US"
    height="46"
    width="180" /&gt;
  &lt;/form&gt;
  </code></pre>