slhemanthkumar / google-checkout-php-sample-code

Automatically exported from code.google.com/p/google-checkout-php-sample-code
0 stars 0 forks source link

googlecart->CheckoutServer2Server has a hardcoded include path #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
googlecart.php has a hard-coded require_once() which expects the 
googlerequest.php file to be 
in a directory named "library", which breaks on projects which use a different 
directory structure 
(e.g. includes/googlecheckout/ for us). 

The patch below removes this entirely on the grounds that the user should 
simply include that 
file as they do all of the other files but it might be considered preferable to 
do something like 
require_once(dirname(__FILE__) . "/googlerequest.php").

--- includes/GoogleCheckout/googlecart.php  (revision 45)
+++ includes/GoogleCheckout/googlecart.php  (working copy)
@@ -962,8 +962,6 @@
      *               and the redirect url returned by the server in index 1
      */
     function CheckoutServer2Server($proxy=array(), $certPath='') {
-      ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'.');
-      require_once('library/googlerequest.php');
       $GRequest = new GoogleRequest($this->merchant_id, 
                       $this->merchant_key, 
                       $this->server_url=="https://checkout.google.com/"?

Original issue reported on code.google.com by adamsc@gmail.com on 9 May 2008 at 6:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
added to sample code, new release coming soon

Original comment by peng.y...@gmail.com on 22 Oct 2008 at 9:58

GoogleCodeExporter commented 9 years ago

Original comment by peng.y...@gmail.com on 22 Oct 2008 at 9:58

GoogleCodeExporter commented 9 years ago
do you have a date on the new release?

Original comment by taxda...@gmail.com on 25 Oct 2008 at 6:24

GoogleCodeExporter commented 9 years ago
http://www.visitchn.com

Original comment by kaixin...@gmail.com on 28 Oct 2008 at 8:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Keep up the awesome Work!!!

Thank you
Gethigharanks
http://www.gethighranks.com

Original comment by gethighr...@gmail.com on 31 Dec 2008 at 10:27

GoogleCodeExporter commented 9 years ago
yeah it's really helpful for me.

http://www.internetbusinessdirectory.org/

Original comment by rajesh.m...@gmail.com on 31 Dec 2008 at 10:28

GoogleCodeExporter commented 9 years ago

Original comment by peng.y...@gmail.com on 28 Jan 2009 at 2:12

GoogleCodeExporter commented 9 years ago
really helpful.

http://www.zahipedia.com

Original comment by mtahirra...@googlemail.com on 28 Jan 2009 at 12:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Nice explanation dude..
keep up the good work.

http://www.visitchn.com

Original comment by kaixin...@gmail.com on 21 Feb 2009 at 3:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Its cool...I would definitely try it :-)

http://www.carazoo.com/

Original comment by izmocars...@gmail.com on 4 Mar 2009 at 7:05

GoogleCodeExporter commented 9 years ago
Nice job..

http://blog.carazoo.com/

Original comment by pina...@gmail.com on 5 Mar 2009 at 10:09

GoogleCodeExporter commented 9 years ago
http://www.cnhuu.cn

Original comment by cn...@cnhuu.cn on 2 Apr 2009 at 3:41

GoogleCodeExporter commented 9 years ago
Keep up the awesome Work!!!

Thank you
Miadeo diseño web
http://www.miadeo.com

Original comment by altamira...@gmail.com on 18 May 2009 at 10:08

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
this is great info

http://www.watchlivetv.us

Original comment by zahid...@gmail.com on 20 Aug 2009 at 4:22

GoogleCodeExporter commented 9 years ago
Great info here you can increase your page rank here .

http://www.zahipedia.com/links/

Original comment by zahid...@gmail.com on 21 Aug 2009 at 1:40

GoogleCodeExporter commented 9 years ago
this info really help me a lot. It help me to fix my project bugs. 

http://www.healthgiants.com/

Original comment by zahidraf...@gmail.com on 12 Oct 2009 at 8:43

GoogleCodeExporter commented 9 years ago
its URL Dinamis , interested to know more plzz ceck up here
,you can learn everything you need here <rich engineer by mundo idiot  
http://goo.gl/QbG9

Original comment by mundofar...@gmail.com on 16 Mar 2010 at 2:29

GoogleCodeExporter commented 9 years ago
Excellent info provided in the post 

<a href="http://www.zahipoint.com/">latest gadget/</a>

Original comment by zahidraf...@gmail.com on 15 May 2010 at 5:38

GoogleCodeExporter commented 9 years ago
Excellent info provided in the post 

<a href="http://www.zahipoint.com/">latest gadget/</a>

Original comment by zahidraf...@gmail.com on 15 May 2010 at 5:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by peng.y...@gmail.com on 13 Sep 2010 at 5:37

GoogleCodeExporter commented 9 years ago
it's a good idea. Im going to use GoogleCheckout on my page 
http://thefreereader.com/

Original comment by thereade...@googlemail.com on 12 Dec 2010 at 6:42

GoogleCodeExporter commented 9 years ago
Thanks for this information  http://www.techuth.com

Original comment by emrang...@gmail.com on 5 Mar 2011 at 3:17

GoogleCodeExporter commented 9 years ago
It's really informative thanks for the sharing. 
http://www.theglobehunters.com/holidays/holiday-package-new-york.php

Original comment by mariyamo...@gmail.com on 5 Jul 2011 at 12:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This is still broken in 1.3.1 download.

Actual:

    function CheckoutServer2Server($proxy=array(), $certPath='') {
      require_once(dirname(__FILE__).'/library/googlerequest.php');

Should be:

    function CheckoutServer2Server($proxy=array(), $certPath='') {
      require_once(dirname(__FILE__).'/googlerequest.php');

Original comment by sandboxb...@rogwei.net on 23 Aug 2011 at 6:24

GoogleCodeExporter commented 9 years ago
Keep up the awesome Work!!!
thanks for sharing
manish gupta
http://www.health-today.org
http://www.tantalize.in

Original comment by mssdlf.g...@gmail.com on 8 Sep 2011 at 4:49

GoogleCodeExporter commented 9 years ago
Here you Provide Very cool Information....thnx
http://www.theglobehunters.com/holidays/holiday-package-orlando.php

Original comment by reo.jas...@gmail.com on 10 Oct 2011 at 11:19

GoogleCodeExporter commented 9 years ago
Bravo !! This really helped me a lot, and saves my hours as i am getting the 
same issue.
Here are my blogs
http://www.fever18.com
http://www.androidzene.com
http://www.zampin.com

Original comment by fever18....@gmail.com on 20 Nov 2011 at 2:42

GoogleCodeExporter commented 9 years ago
Awesome ! worked for me. Thanks for this information
http://www.techhungama.com
http://www.healthmyntra.com

Original comment by harsh420...@gmail.com on 17 Dec 2011 at 7:13

GoogleCodeExporter commented 9 years ago
ya  tried it on site and works file 

http://engineeringstuff.in

Original comment by tusharth...@gmail.com on 18 Dec 2011 at 9:02

GoogleCodeExporter commented 9 years ago
Bravo ! Works very well
http://updatesforu.com

Original comment by harshagg...@gmail.com on 20 Jan 2012 at 1:54

GoogleCodeExporter commented 9 years ago
This is great! i can now integrate this into my shop http://www.lysaflores.com 

Original comment by floriste...@gmail.com on 20 Jan 2012 at 10:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Nice explanation dude..
keep up the good work.
I like it.
http://www.newbajajpulsar.com

Original comment by nikitata...@gmail.com on 10 Feb 2012 at 8:13

GoogleCodeExporter commented 9 years ago
very nice application and really works..
thanks for the information.
http://www.bajajnewpulsar.com

Original comment by nikitata...@gmail.com on 10 Feb 2012 at 8:14