Re: Google Checkout module for ZC 1.3.x (beta)
Quote:
Originally Posted by
discoverytdi
no i can't login with my id and key????
pm sent cheers
Cheers, I have just looked and tested - I can login correctly using your API Key, but get a Internal Server Error (500) meaning PHP has thrown an error!
Add:
PHP Code:
error_reporting(E_ALL);
ini_set('display_errors', '1');
to the top of the responsehandler.php file so I can have a look at the actual PHP error you are having.
Regards,
Matt
Re: Google Checkout module for ZC 1.3.x (beta)
Quote:
Originally Posted by
WebKat
Ok I reinstalled it today and it works... mostly. I mean it processes the order, and it shows up in my Google orders... but it never shows up in ZC admin area. Is it supposed to? What do I need to do to make it show up with all of my other orders?
Site isn't actually live yet, but it's fully functional:
http://opalessenceshop.com
Oh, and it doesn't give any shipping options--it just defaults to USPS First Class mail (the cheapest of the options) and that's that. I'm using USPS mod for shipping.
Both of these issues point to an error accessing/processing within the responsehandler.php file from Google. If you login to Google Checkout:
Live:
https://checkout.google.com/sell/
Sandbox:
https://sandbox.google.com/checkout/sell/
Login, Go to Tools, Integration Console.
Do you see any errors here? If so post back with the details and I will take a look
Re: Google Checkout module for ZC 1.3.x (beta)
Quote:
Originally Posted by
mattclements
Cheers, I have just looked and tested - I can login correctly using your API Key, but get a Internal Server Error (500) meaning PHP has thrown an error!
Add:
PHP Code:
error_reporting(E_ALL);
ini_set('display_errors', '1');
to the top of the responsehandler.php file so I can have a look at the actual PHP error you are having.
Regards,
Matt
HI Matt Heres what i got
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Re: Google Checkout module for ZC 1.3.x (beta)
Quote:
Originally Posted by
mattclements
Yes! Mind you I looked there yesterday based on your answers to other people and these errors weren't there! There are a bunch of errors exactly like this one:
Mar 9, 2012 10:47:15 PM EST Error 634342963735998 We encountered an error trying to access your server at https://opalessenceshop.com/googlech...nsehandler.php -- the error we got is Send failed with code: 400. Response body was: Invalid or not supported Message
Re: Google Checkout module for ZC 1.3.x (beta)
I have another question. I'm trying to style my Login page and I want the Google Checkout button centered in the fieldset it's in... but this code:
PHP Code:
<?php
// ** GOOGLE CHECKOUT **
include(DIR_WS_MODULES . 'show_google_components.php');
// ** END GOOGLE CHECKOUT **
?>
Returns this HTML code:
HTML Code:
<div align="right">
<div style="width: 180px; text-align: center;"><b></b></div></div>
<div align="right">
<div style="width: 180px"><div align=center><form method="POST" action="https://checkout.google.com/api/checkout/v2/checkout/Merchant/[value removed]" onsubmit="setUrchinInputCode();">
<input type="hidden" name="cart" value="[buncha encoded stuff removed here]">
<input type="hidden" name="signature" value="[value removed]">
<input type="image" name="Checkout" alt="Checkout"
src="https://checkout.google.com/buttons/checkout.gif?merchant_id=[value removed]&style=trans&variant=text&loc=en_US"
height="46" width="180" /><input type="hidden" name="analyticsdata" value=""></form></div><!-- Start Google analytics -->
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "[value removed]";
urchinTracker();
</script>
<script src="https://checkout.google.com/files/digital/urchin_post.js" type="text/javascript"></script>
<!-- End Google analytics --><div align="center"><a href="javascript:void(window.open('http://checkout.google.com/seller/what_is_google_checkout.html','whatischeckout','scrollbars=0,resizable=1,directories=0,height=250,width=400'));" onmouseover="return window.status = 'What is Google Checkout?'" onmouseout="return window.status = ''"><font size="-2">What is Google Checkout?</font></a></div></div> </div>
<!-- ** END GOOGLE CHECKOUT ** -->
Which as you can see contains not one but TWO <div align="right"> tags... which I want to be <div align="center">... is there any way to change those, or are they Google-end things, or what? I mean I can live with it being right-aligned, it's just that the symmetry would be better if it were centered; see here: https://opalessenceshop.com/index.ph...rfp0cnt77fs743 (that should take you to the page with new customer registration/returning customer login/checkout with paypal/checkout with google; if it takes you to the page that has the form to fill out to register, try putting something in your cart and then clicking "Log In" from the top nav bar.) The PayPal button is centered, so having the Google button centered would just match well... though I don't want the Google button to be centered elsewhere on the site, so I was hoping I could edit just this instance... possible or no?
Re: Google Checkout module for ZC 1.3.x (beta)
HTML Code:
<div align="center">
Is NOT valid CSS.. Suggest Googling "centering content CSS" to get the correct way to do this.. You will need to create the classes/IDs in your stylesheet for centering your content..
then take a look at the show_google_components.php file (the one being called by the code you quoted) and add the appropriate div containers where you want to apply your classes/IDs.
Quote:
Originally Posted by
WebKat
I have another question. I'm trying to style my Login page and I want the Google Checkout button centered in the fieldset it's in... but this code:
PHP Code:
<?php
// ** GOOGLE CHECKOUT **
include(DIR_WS_MODULES . 'show_google_components.php');
// ** END GOOGLE CHECKOUT **
?>
Returns this HTML code:
HTML Code:
<div align="right">
<div style="width: 180px; text-align: center;"><b></b></div></div>
<div align="right">
<div style="width: 180px"><div align=center><form method="POST" action="https://checkout.google.com/api/checkout/v2/checkout/Merchant/[value removed]" onsubmit="setUrchinInputCode();">
<input type="hidden" name="cart" value="[buncha encoded stuff removed here]">
<input type="hidden" name="signature" value="[value removed]">
<input type="image" name="Checkout" alt="Checkout"
src="https://checkout.google.com/buttons/checkout.gif?merchant_id=[value removed]&style=trans&variant=text&loc=en_US"
height="46" width="180" /><input type="hidden" name="analyticsdata" value=""></form></div><!-- Start Google analytics -->
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "[value removed]";
urchinTracker();
</script>
<script src="https://checkout.google.com/files/digital/urchin_post.js" type="text/javascript"></script>
<!-- End Google analytics --><div align="center"><a href="javascript:void(window.open('http://checkout.google.com/seller/what_is_google_checkout.html','whatischeckout','scrollbars=0,resizable=1,directories=0,height=250,width=400'));" onmouseover="return window.status = 'What is Google Checkout?'" onmouseout="return window.status = ''"><font size="-2">What is Google Checkout?</font></a></div></div> </div>
<!-- ** END GOOGLE CHECKOUT ** -->
Which as you can see contains not one but TWO
<div align="right"> tags... which I want to be
<div align="center">... is there any way to change those, or are they Google-end things, or what? I mean I can live with it being right-aligned, it's just that the symmetry would be better if it were centered; see here:
https://opalessenceshop.com/index.ph...rfp0cnt77fs743 (that should take you to the page with new customer registration/returning customer login/checkout with paypal/checkout with google; if it takes you to the page that has the form to fill out to register, try putting something in your cart and then clicking "Log In" from the top nav bar.) The PayPal button is centered, so having the Google button centered would just match well... though I don't want the Google button to be centered elsewhere on the site, so I was hoping I could edit just this instance... possible or no?
Re: Google Checkout module for ZC 1.3.x (beta)
Quote:
Originally Posted by
WebKat
Yes! Mind you I looked there yesterday based on your answers to other people and these errors weren't there! There are a bunch of errors exactly like this one:
Mar 9, 2012 10:47:15 PM EST Error 634342963735998 We encountered an error trying to access your server at https://opalessenceshop.com/googlech...nsehandler.php -- the error we got is Send failed with code: 400. Response body was: Invalid or not supported Message
That sounds like a mis-configuration in Google Checkout.
Go to: https://checkout.google.com/sell/ (for Live Sites), login and go to Settings, Integration.
Check that Callback contents is set to "Notification as XML", as this will feedback your response in the correct format for the module.
Regards,
Matt
Re: Google Checkout module for ZC 1.3.x (beta)
+1 for this! I am going to be updating the module as soon as possible to use 100% correct HTML/CSS (i.e. use style="" rather than various align="")
Quote:
Originally Posted by
DivaVocals
HTML Code:
<div align="center">
Is NOT valid CSS.. Suggest Googling "centering content CSS" to get the correct way to do this.. You will need to create the classes/IDs in your stylesheet for centering your content..
then take a look at the
show_google_components.php file (the one being called by the code you quoted) and add the appropriate div containers where you want to apply your classes/IDs.
Re: Google Checkout module for ZC 1.3.x (beta)
Quote:
Originally Posted by
discoverytdi
HI Matt Heres what i got
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
[email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Thats still the 500 error, so the added code to display the errors is not being actioned correctly.
Do you have access to your error_logs which would hold a log of all PHP errors for the site?
Failing that, feel free to drop over the FTP details to [email protected] and I can diagnose further for you (or via PM)
Re: Google Checkout module for ZC 1.3.x (beta)
Quote:
Originally Posted by
mattclements
Thats still the 500 error, so the added code to display the errors is not being actioned correctly.
Do you have access to your error_logs which would hold a log of all PHP errors for the site?
Failing that, feel free to drop over the FTP details to
[email protected] and I can diagnose further for you (or via PM)
pm sent I've also sent a donation in thanks for your help for your help