Author Topic: Resolving Problems with the Google Checkout gateway  (Read 3821 times)

Offline rgjoyce

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Resolving Problems with the Google Checkout gateway
« on: 23/August/2008, 03:51:32 AM »
Hi All,

Here are a couple of possible causes of problems....
Are you using Godaddy hosting?
If so,
in the file administrator/components/com_netinvoice/admin.gateway/admin.google/google.php
Code: [Select]
if((_OSDCS_GODADDY)=='1'){
    curl_setopt($ch, CURLOPT_VERBOSE, 1);
    curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
    curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
    curl_setopt($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");
    curl_setopt($ch, CURLOPT_TIMEOUT, 120);
   }
Late addition: I forgot to mention. you need to add a language definition to your language file if you're using godaddy hosting.
And don't forget to "use Curl" to Y in the payment gateway config page.
administrator/components/com_netinvoice/admin.gateway/admin.google/google_english.php
Code: [Select]
define('_OSDCS_GODADDY','1');

Another cause of problems is that people don't set their API setting.
1) Log into your google merchant account
2) Click the "My Sales" link.
3) Click the settings tab
4) Select "Integration" on the left menu
5) enter the "API callback URL:" as http://www.yourdomain.com/index.php?option=com_netinvoice&action=gateway&gateway=google&task=return
NOTE: You must provide the URL of a server running 128-bit SSLv3 so... you might want to set this to https instead of just http
6) set the callback method to XML
7) SELECT My company will only post digitally signed carts
Click Save.

Next setup the processing preferences:
1) Log into your google merchant account
2) Click the "My Sales" link.
3) Click the settings tab
4) Select "Preferences" on the left menu
5) Select Automatically authorize and charge the buyer's credit card.
NOTE: If you don't do this, you will have to log into your google merchant account and manually click the Charge button on the orders list.
6) Select to send an email (your choice)
7) Click Save Preferences

The following is my server config:
Curl with ssl is installed, therefore I set CURL to Y in the config of the gateway.
OpenSSL apache module and --with-openssl in the PHP compile options.
I do NOT have an ssl certificate installed on my server as it is not needed.

If you want a return URL to appear on the google successful payment page, you need to configure that URL in your Google account.
1) Log into google with your Merchant account
2) Click the My Sales link in the top right corner
3) Click the settings tab
4) enter the return URL in the "Public business website" field
5) Click Save

I tested this from my dev site.
When paying an invoice, I wenbt through the entire workflow and got a thank you for your payment message.  I then clicked the link to return to the site and I saw that my invoice status has changed to paid.

If you have all of the above, and are still having problems, please let me know.
« Last Edit: 23/August/2008, 03:11:21 PM by rgjoyce »