Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google Chekout Issues


Andrew Yuen

Recommended Posts

After re-installing and searching through the forums I am stumped with an issue I am having with this contribution. I have installed it with no problem on a clean osCommerce site, but having trouble on the highly modified site I have running.

 

A ) I am getting no errors messages.

B ) I am getting a broken googlecheckout picture (icon) on both the login page and the shopping cart page.

C ) HTML code reveals:

src="MODULE_PAYMENT_GOOGLECHECKOUT_MODEbuttons/checkout.gif?merchant_id= MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTID&w=180&h=46&style=white&variant=text&loc=en_US"height="46" width="180">

 

For some reason MODULE_PAYMENT_GOOGLECHECKOUT_MODE

and MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTID are not being pulled from the config table in the database.

 

D ) Manually editing the gcheckout.php fixes the image but when the button is clicked it does not bring you to the google checkout site.

 

I would appreciate any help or suggestions. Thanks so much.

 

Andrew

Andrew Yuen

osCommerce, Community Team

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

I just got the google checkout button working (level1) and i did have to make some changes to the code.

In the /googlecheckout/classes/gOscCommunicator.php about line 75 there are some options that are setup, including urls.

The urls need to be updated with /checkout/....

 

$options = array(

'GCheckout_currency' => 'USD',

'GCheckout_xmlSchema' => 'http://checkout.google.com/schema/2',

'GCheckout_button' => "http://".$GCheckout_subdomain.".google.com/checkout/buttons/checkout.gif",

'GCheckout_button_w' => '180',

'GCheckout_button_h' => '46',

'GCheckout_button_loc' => 'en_US',

'GCheckout_button_style' => 'trans',

'GCheckout_base_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id,

'GCheckout_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id. "/checkout",

'GCheckout_diagnose_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id. "/checkout/diagnose",

'GCheckout_request_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id. "/request",

'GCheckout_request_diagnose_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id. "/request/diagnose",

'GCheckout_or_use_text' => GOOGLECHECKOUT_OR_USE

);

 

mm

 

After re-installing and searching through the forums I am stumped with an issue I am having with this contribution. I have installed it with no problem on a clean osCommerce site, but having trouble on the highly modified site I have running.

 

A ) I am getting no errors messages.

B ) I am getting a broken googlecheckout picture (icon) on both the login page and the shopping cart page.

C ) HTML code reveals:

src="MODULE_PAYMENT_GOOGLECHECKOUT_MODEbuttons/checkout.gif?merchant_id= MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTID&w=180&h=46&style=white&variant=text&loc=en_US"height="46" width="180">

 

For some reason MODULE_PAYMENT_GOOGLECHECKOUT_MODE

and MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTID are not being pulled from the config table in the database.

 

D ) Manually editing the gcheckout.php fixes the image but when the button is clicked it does not bring you to the google checkout site.

 

I would appreciate any help or suggestions. Thanks so much.

 

Andrew

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...