Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to get response from Google Checkout after completing payment
    primarykey
    data
    text
    <p>I am integrating Google Checkout into PHP. After completing a payment, I am attempting to redirect to my localhost, but I am not receiving a response from Google Checkout. When I use Paypal, I get txn_id, item_name, payment_status, payment amount, etc. here is my code:</p> <pre><code> echo "&lt;h2&gt;Standard Checkout Request&lt;/h2&gt;"; $merchant_id = "my merchant id"; // Your Merchant ID $merchant_key = "my merchant key"; // Your Merchant Key $server_type = "sandbox"; $currency = "USD"; $cart = new GoogleCart($merchant_id, $merchant_key, $server_type, $currency); $total_count = 12; $item_1 = new GoogleItem("item name", // Item name "T-shart", // Item description $total_count, // Quantity 1); // Unit price $cart-&gt;AddItem($item_1); // Add shipping options if($total_count &lt; 3){ $ship_1 = new GoogleFlatRateShipping("USPS Priority Mail", 4.55); }else{ $ship_1 = new GoogleFlatRateShipping("USPS Priority Mail", 6.2); } $Gfilter = new GoogleShippingFilters(); $Gfilter-&gt;SetAllowedCountryArea('CONTINENTAL_48'); $ship_1-&gt;AddShippingRestrictions($Gfilter); $cart-&gt;AddShipping($ship_1); // Add tax rules $tax_rule = new GoogleDefaultTaxRule(0.05); $tax_rule-&gt;SetStateAreas(array("MA")); $cart-&gt;AddDefaultTaxRules($tax_rule); // Specify &lt;edit-cart-url&gt; $cart-&gt;SetEditCartUrl("http://localhost/Practice/PaymentDemo/library/googleRequestSecond.php"); // Specify "Return to xyz" link $cart-&gt;SetContinueShoppingUrl("http://localhost/Practice/PaymentDemo/library/googleRequestSecond.php"); // Request buyer's phone number $cart-&gt;SetRequestBuyerPhone(true); // Display Google Checkout button echo $cart-&gt;CheckoutButtonCode("SMALL"); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload