Page 32 of 394 FirstFirst ... 2230313233344282132 ... LastLast
Results 311 to 320 of 3932
  1. #311
    Join Date
    Dec 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: Google Checkout module for Zen Cart released (beta)

    Quote Originally Posted by brimsjewelry View Post
    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
    Code:
      $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

    Code:
    /*  $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:
    Code:
    $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

  2. #312
    Join Date
    May 2004
    Posts
    21
    Plugin Contributions
    0

    Default Re: Google Checkout module for Zen Cart released (beta)

    Quote Originally Posted by krypton1 View Post
    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.

  3. #313
    Join Date
    Dec 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: Google Checkout module for Zen Cart (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

  4. #314
    Join Date
    Dec 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: Google Checkout module for Zen Cart released (beta)

    Quote Originally Posted by apursell View Post
    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!
    B

  5. #315
    Join Date
    Jun 2006
    Location
    Midlothian, Virginia, United States
    Posts
    111
    Plugin Contributions
    0

    Default Re: Google Checkout module for Zen Cart (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

  6. #316
    Join Date
    May 2004
    Posts
    21
    Plugin Contributions
    0

    Default Re: Google Checkout module for Zen Cart released (beta)

    Quote Originally Posted by krypton1 View Post
    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!
    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.
    Last edited by apursell; 7 Dec 2006 at 07:08 PM.

  7. #317
    Join Date
    Jun 2006
    Location
    Midlothian, Virginia, United States
    Posts
    111
    Plugin Contributions
    0

    Default Re: Google Checkout module for Zen Cart released (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.

  8. #318
    Join Date
    Jun 2006
    Location
    Midlothian, Virginia, United States
    Posts
    111
    Plugin Contributions
    0

    Default Re: Google Checkout module for Zen Cart released (beta)

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

    Current checkout integration settings:
    https://www.mystore.com/googlechecko...nsehandler.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.

  9. #319
    Join Date
    Jun 2006
    Location
    Midlothian, Virginia, United States
    Posts
    111
    Plugin Contributions
    0

    Default Re: Google Checkout module for Zen Cart released (beta)

    Quote Originally Posted by krypton1 View Post
    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
    Code:
      $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

    Code:
    /*  $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:
    Code:
    $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/googlechecko...nsehandler.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.

  10. #320
    Join Date
    Dec 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: Google Checkout module for Zen Cart (beta)

    Quote Originally Posted by anjordan77 View Post
    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
    Quote Originally Posted by anjordan77 View Post


    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

 

 

Similar Threads

  1. v155 BETA feedback for Responsive-Classic in v155-beta
    By picaflor-azul in forum Addon Templates
    Replies: 51
    Last Post: 5 Mar 2016, 09:14 PM
  2. Google Checkout module support for ZC 1.5.0?
    By Woodymon in forum Addon Payment Modules
    Replies: 2
    Last Post: 21 Jan 2012, 03:18 AM
  3. Google Checkout - is there a module for 1.3.9g?
    By cchan in forum Addon Payment Modules
    Replies: 0
    Last Post: 9 Jan 2011, 05:04 AM
  4. Update Google Checkout Module or Custom Google Checkout?
    By pacificmanagment in forum Addon Payment Modules
    Replies: 1
    Last Post: 24 May 2010, 09:40 AM
  5. Replies: 1
    Last Post: 31 May 2009, 02:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR