Forums / Addon Payment Modules / Google Checkout module for ZC 1.3.x (beta)

Google Checkout module for ZC 1.3.x (beta)

Locked

Started by jacob13moon on 26 Sep 2006, 8:09 PM · Views: 1,101,465

Results 301 to 320 of 3,921
This thread is locked. New replies are disabled.
4 Dec 2006, 5:14 PM
#301
apursell avatar

apursell

New Zenner

Join Date:
May 2004
Posts:
21
Plugin Contributions:
0

Google Checkout module for ZC 1.3.x (beta)

I am having trouble integrating this.

the website is https://www.phresolutions.com or https://www.phresolutions.com

Followed README and INSTALL instructions.

Responsehandler.php does not give any errors.

Added both merchant number and auth key to checkout.

When try and test the transaction it never redirects or opens any item for credit card entry on the website. it goves from the choose your payment option, then goes to the confirm order, and when you press confirm order. it goes through (the order) and puts it into processing queue, without accepting payment.

The paypal IPN works fine. Its just googlecheckout...not sure whats going on any help would be great.

5 Dec 2006, 10:29 AM
#302
triplemoons avatar

triplemoons

New Zenner

Join Date:
Oct 2006
Location:
Hanover, PA
Posts:
71
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

apursell:

I am having trouble integrating this.

the website is www.phresolutions.com or https://www.phresolutions.com

Followed README and INSTALL instructions.

Responsehandler.php does not give any errors.

Added both merchant number and auth key to checkout.

When try and test the transaction it never redirects or opens any item for credit card entry on the website. it goves from the choose your payment option, then goes to the confirm order, and when you press confirm order. it goes through (the order) and puts it into processing queue, without accepting payment.

The paypal IPN works fine. Its just googlecheckout...not sure whats going on any help would be great.

I have this same problem and questioned it on the 25th of November. I have yet to be answered... :blink:

.: Stef :.

5 Dec 2006, 5:04 PM
#303
apursell avatar

apursell

New Zenner

Join Date:
May 2004
Posts:
21
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

TripleMoons:

I have this same problem and questioned it on the 25th of November. I have yet to be answered... :blink:

Awesome, i'm glad i signed up for a merchant account with google.

Just curious what version of PHP are you running, i'm thinking this may have to do with it.

6 Dec 2006, 5:17 AM
#304
krypton1 avatar

krypton1

New Zenner

Join Date:
Dec 2006
Posts:
15
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

TripleMoons:

I have this same problem and questioned it on the 25th of November. I have yet to be answered... :blink:

Do you guys see a google checkout button that looks like this on your page:
http://www.magneticone.com/store/images/products/oscommerce-google-checkout-demo-small.jpg

If not, then it means you GCO module isn't correctly installed. Check templates, because if you are modifying the files in one area, but zen cart is pulling template files out of somewhere else then it won't run the GCO code you installed. Its relatively easy to do this. This link:
https://www.zen-cart.com/tutorials/index.php?article=230
explains the override system that zen cart uses to load different files for different templates.
Brian

6 Dec 2006, 5:24 AM
#305
krypton1 avatar

krypton1

New Zenner

Join Date:
Dec 2006
Posts:
15
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

I am in a similar boat as others.

GCO mod successfully installed, however when order is completed it does not show up in admin section of zen cart.

To be honest I don't really care about this, since I'd be fine just using the orders system on google's site to process my orders. The bigger problem, in my opinion, is that after the user completes the order they:

  1. return to my website homepage, not a checkout success page that lets them know all went well
  2. back on my homepage their cart is still sitting there with items in it!

The inevitable result of this is that user will be unsure, did it really go through?

I have to say, as far as the Google Checkout in general (not its integration) I am extremely impressed. It beats the snot out of paypal in a lot of ways. I have faith that Google will see this integration through.

To any of the developers, let me know if I can help contribute code. I'm interested in getting this working well for my own store and helping others would be good as well.

Thanks,
Brian

6 Dec 2006, 5:28 AM
#306
krypton1 avatar

krypton1

New Zenner

Join Date:
Dec 2006
Posts:
15
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

colosports:

To all users:
Attach is a screenshot of what the admin ui should look like after the order is placed with Google Checkout.

Colosports,

If I'm not mistaken this is what everyone is trying to figure out how to do, right? You posted a screen shot of it so you must have it working in some form. How did you do it?

Brian

6 Dec 2006, 8:15 PM
#307
apursell avatar

apursell

New Zenner

Join Date:
May 2004
Posts:
21
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

krypton1:

Do you guys see a google checkout button that looks like this on your page:
http://www.magneticone.com/store/images/products/oscommerce-google-checkout-demo-small.jpg

If not, then it means you GCO module isn't correctly installed. Check templates, because if you are modifying the files in one area, but zen cart is pulling template files out of somewhere else then it won't run the GCO code you installed. Its relatively easy to do this. This link:
https://www.zen-cart.com/tutorials/index.php?article=230
explains the override system that zen cart uses to load different files for different templates.
Brian

no i don't but that doesn't tell me how to install this, i followed the module instructions to the teeth.

6 Dec 2006, 10:32 PM
#308
krypton1 avatar

krypton1

New Zenner

Join Date:
Dec 2006
Posts:
15
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

apursell:

no i don't but that doesn't tell me how to install this, i followed the module instructions to the teeth.

Hi Apursell,

Ok, you probably did the instructions exactly, but it might have been on the wrong file (that looked like the right file). Zen cart has copies of files in different template folders that look almost identical. Depending on which template you use it will use different files. See the part in the install instructions where they talk about "YOUR_TEMPLATE". This needs to be replaced with your correct directory. Pull up your zen cart admin -> tools -> template selection. See whats listed under "template directory"? I think there should just be one. This is what you should use in place of that variable, "YOUR_TEMPLATE".

Anything in the install instructions in caps is meant to be replaced with your own values. Same for "YOUR_ZENCART_FOLDER" too.

Good luck, let me know if that helps.
Brian

7 Dec 2006, 5:47 AM
#309
brimsjewelry avatar

brimsjewelry

Zen Follower

Join Date:
May 2006
Posts:
188
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

krypton1:

I am in a similar boat as others.

GCO mod successfully installed, however when order is completed it does not show up in admin section of zen cart.

To be honest I don't really care about this, since I'd be fine just using the orders system on google's site to process my orders. The bigger problem, in my opinion, is that after the user completes the order they:

  1. return to my website homepage, not a checkout success page that lets them know all went well
  2. back on my homepage their cart is still sitting there with items in it!

The inevitable result of this is that user will be unsure, did it really go through?

I have to say, as far as the Google Checkout in general (not its integration) I am extremely impressed. It beats the snot out of paypal in a lot of ways. I have faith that Google will see this integration through.

To any of the developers, let me know if I can help contribute code. I'm interested in getting this working well for my own store and helping others would be good as well.

Thanks,
Brian

I installed it successfully too and have the same issues. Its not really a problem since the sale goes through but what to tell the customer when they dont return to a checkout success page?

Jason

7 Dec 2006, 6:05 AM
#310
anjordan77 avatar

anjordan77

Zen Follower

Join Date:
Jun 2006
Location:
Midlothian, Virginia, United States
Posts:
110
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

it's weird before i had created a folder in the main page area called googlecheckout
and copied the info in there like i was told...and it would only pop up that the person had checked out in admin without them paying...then i copied the files from there into the admin/googlecheckout folder and boom suddenly people were paying with google checkout instantly...but no admin orders for google checkout customers and no attributes working.

I'm thinking it has to do with google not being allowed in the admin area which we need it to be in order to notify us on the website

7 Dec 2006, 5:43 PM
#311
krypton1 avatar

krypton1

New Zenner

Join Date:
Dec 2006
Posts:
15
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

brimsjewelry:

I installed it successfully too and have the same issues. Its not really a problem since the sale goes through but what to tell the customer when they dont return to a checkout success page?

Jason

Ok I have a fix for the issue about orders not showing up in zen cart admin. I got this off the oscommerce site, they have a similar thread.

Basically you can comment out some lines in responsehandler.php and it goes through. Cart gets deleted, and the order shows up correctly in zen cart admin.

In googlecheckout/responsehandler.php

Change

  $headers = getallheaders();
  if(isset($headers['Authorization'])) {
    $auth_encode = $headers['Authorization'];
    $auth = base64_decode(substr($auth_encode, strpos($auth_encode, " ") + 1));
    $compare_mer_id = substr($auth, 0, strpos($auth,":"));
    $compare_mer_key = substr($auth, strpos($auth,":")+1);
  } else {
      error_func("Line 119: headers['Authorization'] is NULL.\n");
      exit(1);
  }
  $googlepayment = new googlecheckout();
  $merchant_id =  $googlepayment->merchantid;
  $merchant_key = $googlepayment->merchantkey;

  if($compare_mer_id != $merchant_id || $compare_mer_key != $merchant_key) {
    error_func("Line 127: merchant_id or merchant_key does not match.\n");
    exit(1);
  }

to

/*  $headers = getallheaders();
  if(isset($headers['Authorization'])) {
    $auth_encode = $headers['Authorization'];
    $auth = base64_decode(substr($auth_encode, strpos($auth_encode, " ") + 1));
    $compare_mer_id = substr($auth, 0, strpos($auth,":"));
    $compare_mer_key = substr($auth, strpos($auth,":")+1);
  } else {
      error_func("Line 119: headers['Authorization'] is NULL.\n");
      exit(1);
  }*/
  $googlepayment = new googlecheckout();
  $merchant_id =  $googlepayment->merchantid;
  $merchant_key = $googlepayment->merchantkey;

  /*if($compare_mer_id != $merchant_id || $compare_mer_key != $merchant_key) {
    error_func("Line 127: merchant_id or merchant_key does not match.\n");
    exit(1);
  }*/

basically you are commenting out all except these three lines:

$googlepayment = new googlecheckout();
  $merchant_id =  $googlepayment->merchantid;
  $merchant_key = $googlepayment->merchantkey;

You are removing the security checks. Is this safe? I have no idea. But it does work, so I decided to post it. It may provide clues to help others come up with better solutions or provide you something good enough to go with for now until Google fixes this bug.
Brian

7 Dec 2006, 5:43 PM
#312
apursell avatar

apursell

New Zenner

Join Date:
May 2004
Posts:
21
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

krypton1:

Hi Apursell,

Ok, you probably did the instructions exactly, but it might have been on the wrong file (that looked like the right file). Zen cart has copies of files in different template folders that look almost identical. Depending on which template you use it will use different files. See the part in the install instructions where they talk about "YOUR_TEMPLATE". This needs to be replaced with your correct directory. Pull up your zen cart admin -> tools -> template selection. See whats listed under "template directory"? I think there should just be one. This is what you should use in place of that variable, "YOUR_TEMPLATE".

Anything in the install instructions in caps is meant to be replaced with your own values. Same for "YOUR_ZENCART_FOLDER" too.

Good luck, let me know if that helps.
Brian

Yeah i understand that, and its set to classic, so i put it/edited the files for "classic" template.

7 Dec 2006, 5:45 PM
#313
krypton1 avatar

krypton1

New Zenner

Join Date:
Dec 2006
Posts:
15
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Next, I'm going to try getting google checkout working with JROX affiliate manager. GCO currently breaks it since the user never gets to the checkout_success.php page

If anyone has tips on this please post.

Brian

7 Dec 2006, 5:54 PM
#314
krypton1 avatar

krypton1

New Zenner

Join Date:
Dec 2006
Posts:
15
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

apursell:

Yeah i understand that, and its set to classic, so i put it/edited the files for "classic" template.

Hi Apursell,

Ok, could be something else. Bottom line is that the the code you added on the shopping_cart page is not getting run. Basically, don't worry about getting the install right...just worry about finding the right place in the right file to modify. Just test some different files, in different places, put a big red "hello" (or print("hello"); if its php) somewhere in the code, then save it, and reload the page. Does it show up? Try seeing if you can modify ANYTHING on the shopping_cart page...then put in some google code.

Also, double check you have the GCO mod installed and enabled in admin->payment modules

after that i might be out of ideas! :lookaroun
B

7 Dec 2006, 5:59 PM
#315
anjordan77 avatar

anjordan77

Zen Follower

Join Date:
Jun 2006
Location:
Midlothian, Virginia, United States
Posts:
110
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

did you make the googlecheckout folder in the admin...

what api callback are you using? any other google checkout settings would be appreciated.

thanks

7 Dec 2006, 6:04 PM
#316
apursell avatar

apursell

New Zenner

Join Date:
May 2004
Posts:
21
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

krypton1:

Hi Apursell,

Ok, could be something else. Bottom line is that the the code you added on the shopping_cart page is not getting run. Basically, don't worry about getting the install right...just worry about finding the right place in the right file to modify. Just test some different files, in different places, put a big red "hello" (or print("hello"); if its php) somewhere in the code, then save it, and reload the page. Does it show up? Try seeing if you can modify ANYTHING on the shopping_cart page...then put in some google code.

Also, double check you have the GCO mod installed and enabled in admin->payment modules

after that i might be out of ideas! :lookaroun
B

Thats what i'm trying to do why do you think i'm here....HAHA

I think i'm getting somewhere, on the "checkout/login" page, where you can login to Zen or Create new account, it now has a "Or use" and shows a link (with broken image) to Googlecheckout. But for some reason the image is not showing up so it just shows ALT tag and the empty square where the image should be. HOWEVER, this would be pointless b/c it is before shipping charges are added, and well then i would be losing money. so....its a start but not the right one.
I'm know its probably something simple at this point.

7 Dec 2006, 6:10 PM
#317
anjordan77 avatar

anjordan77

Zen Follower

Join Date:
Jun 2006
Location:
Midlothian, Virginia, United States
Posts:
110
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

hold your breath, i'm about to give it a shot with my alter ego with your responsehandler.php mods....

i see i just had an order go through and again it did not pick up in admin nor in the attributes(Size) in this case.

7 Dec 2006, 6:18 PM
#318
anjordan77 avatar

anjordan77

Zen Follower

Join Date:
Jun 2006
Location:
Midlothian, Virginia, United States
Posts:
110
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Again it did not pop up in my Admin Panel in zen-cart

Current checkout integration settings:
https://www.mystore.com/googlecheckout/responsehandler.php

Email notifications
Email me each time I receive an order, cancellation or other transaction.
You will receive an email with each new order, cancellation or other transaction.
ENABLED
Shopping cart type
Allow shopping carts with name/value pairs to be sent to Google.
ENABLED

Callback Method:
name/value pairs

I'm currently receiving orders just not in my admin section of my website.

7 Dec 2006, 6:48 PM
#319
anjordan77 avatar

anjordan77

Zen Follower

Join Date:
Jun 2006
Location:
Midlothian, Virginia, United States
Posts:
110
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

krypton1:

Ok I have a fix for the issue about orders not showing up in zen cart admin. I got this off the oscommerce site, they have a similar thread.

Basically you can comment out some lines in responsehandler.php and it goes through. Cart gets deleted, and the order shows up correctly in zen cart admin.

In googlecheckout/responsehandler.php

Change

$headers = getallheaders();
if(isset($headers['Authorization'])) {
$auth_encode = $headers['Authorization'];
$auth = base64_decode(substr($auth_encode, strpos($auth_encode, " ") + 1));
$compare_mer_id = substr($auth, 0, strpos($auth,":"));
$compare_mer_key = substr($auth, strpos($auth,":")+1);
} else {
error_func("Line 119: headers['Authorization'] is NULL.\n");
exit(1);
}
$googlepayment = new googlecheckout();
$merchant_id = $googlepayment->merchantid;
$merchant_key = $googlepayment->merchantkey;

if($compare_mer_id != $merchant_id || $compare_mer_key != $merchant_key) {
error_func("Line 127: merchant_id or merchant_key does not match.\n");
exit(1);
}

> 
> to
> 
> ```
/*  $headers = getallheaders();
  if(isset($headers['Authorization'])) {
    $auth_encode = $headers['Authorization'];
    $auth = base64_decode(substr($auth_encode, strpos($auth_encode, " ") + 1));
    $compare_mer_id = substr($auth, 0, strpos($auth,":"));
    $compare_mer_key = substr($auth, strpos($auth,":")+1);
  } else {
      error_func("Line 119: headers['Authorization'] is NULL.\n");
      exit(1);
  }*/
  $googlepayment = new googlecheckout();
  $merchant_id =  $googlepayment->merchantid;
  $merchant_key = $googlepayment->merchantkey;

  /*if($compare_mer_id != $merchant_id || $compare_mer_key != $merchant_key) {
    error_func("Line 127: merchant_id or merchant_key does not match.\n");
    exit(1);
  }*/

basically you are commenting out all except these three lines:

$googlepayment = new googlecheckout();
$merchant_id = $googlepayment->merchantid;
$merchant_key = $googlepayment->merchantkey;

> 
> You are removing the security checks.  Is this safe?  I have no idea.  But it does work, so I decided to post it.  It may provide clues to help others come up with better solutions or provide you something good enough to go with for now until Google fixes this bug.
> Brian



OK, i did this and i also created a folder googlecheckout in the store main level so it's now in your public_html or wherever.

in the checkout folder i copied everything over from the admin/googlecheckout/
folder into my new created one.

In google i have under integration:  
API Callback URL
<https://www.MYSTORE.com/googlecheckout/responsehandler.php>
Callback Method:  XML
Email Notifications **enabled
Shopping Cart Type **disabled


I am currently receiving orders properly but without the attributes(Size, Color, etc.)  I also don't have google factoring in shipping costs right now so everyone that uses google checkout gets free shipping which is a big problem for me because i can end up with some heavy items.  Those are the least of my worries, i want the attributes to work as of right now.

Instead of having to email someone every order to find out what they really did order.  It does not show me in my Zen-Cart Admin either.
8 Dec 2006, 1:46 AM
#320
krypton1 avatar

krypton1

New Zenner

Join Date:
Dec 2006
Posts:
15
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

anjordan77:

did you make the googlecheckout folder in the admin...nope, just in the root web directory, so the url is
http://<url-site-url>/googlecheckout/responsehandler.php> anjordan77:

what api callback are you using? any other google checkout settings would be appreciated.

thanks

API callback is just as it says in install,
http://<url-site-url>/googlecheckout/responsehandler.php

I'm using xml, instead of name/val pairs