kmitgroup / 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
That was really helpful for me , thanks for this !
http://www.cyberdesignpk.com

Original comment by kmarshal...@gmail.com on 21 Feb 2012 at 9:28

GoogleCodeExporter commented 9 years ago
nice examination it really works well ! Excellent work
Thanks for this information !
http://technodashboard.com/
http://digitalgyaan.com/

Original comment by harsh420...@gmail.com on 5 Mar 2012 at 8:10

GoogleCodeExporter commented 9 years ago
very nice job Sir.
Thanks For the right Information.
http://www.myresultsplace.com
http://www.freshersnation.com
http://www.saisamaraknidhi.org

Original comment by nikitata...@gmail.com on 24 Mar 2012 at 2:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Good Job Sir..Thanks 

http://price4shop.com/

http://www.adusin.com

Original comment by price4s...@gmail.com on 30 Mar 2012 at 4:00

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

http://observerzparadise.com

Original comment by sanchit1...@gmail.com on 1 Apr 2012 at 7:56

GoogleCodeExporter commented 9 years ago
thanks for sharing
http://www.saismaraknidhi.org
[http://www.saismaraknidhi.org Sai Smarak Nidhi]

Original comment by manojgoe...@gmail.com on 2 Apr 2012 at 11:02

GoogleCodeExporter commented 9 years ago
gracias por compartir  http://1161787.talkfusion.com  
http://1161787.tourtalkfusion.com/

Original comment by danielfranciscoj on 5 Apr 2012 at 4:50

GoogleCodeExporter commented 9 years ago
That's really nice man thanks for sharing http://itechcrazy.com/

Original comment by itechcr...@gmail.com on 5 Apr 2012 at 5:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Google checkout its really secure , and thanks for giving Sample code , 
http://www.learnnowit.com

Original comment by sinalkar...@gmail.com on 26 May 2012 at 2:09

GoogleCodeExporter commented 9 years ago
It is sure that Google code is one of the most reliable product offered from 
the Big G.such in BloggersTech at http://www.umain30.com

Original comment by umain30 on 6 Jun 2012 at 8:19

GoogleCodeExporter commented 9 years ago
good Job Sir..thanks 2 this code

http://www.onlinesurgicals.com/store/

http://onlinesurgicals.blogspot.in/

Original comment by gopinath...@gmail.com on 19 Jun 2012 at 11:09

GoogleCodeExporter commented 9 years ago
thanks for the good information.
very nice application and really works..

http://www.theglobehunters.com/flights-to-orlando.php
http://www.travelhighstreet.com/maldives.aspx

Original comment by reo.jas...@gmail.com on 21 Jun 2012 at 7:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Awsome Sir! Thanx alot sir ...

http://online-tech-world.com

Original comment by veeraj.v...@gmail.com on 23 Jun 2012 at 5:55

GoogleCodeExporter commented 9 years ago
Excellent! That solved the problem! :)

http://www.imagento.com
http://www.mybestpresent.com

Original comment by kgri...@gmail.com on 9 Jul 2012 at 10:31

GoogleCodeExporter commented 9 years ago
nice one :) 
http://netphoon.com

Original comment by prasanna...@gmail.com on 11 Jul 2012 at 11:15

GoogleCodeExporter commented 9 years ago
thanx alot sir for this
http://www.parupedia.com

Original comment by donate.d...@gmail.com on 14 Jul 2012 at 3:22

GoogleCodeExporter commented 9 years ago
Thanks 2 this code ..good job

http://www.sumtechonline.com/index.php

http://www.spinn.com/

Original comment by arunraj....@gmail.com on 9 Sep 2012 at 1:21

GoogleCodeExporter commented 9 years ago
good job awesome work

http://www.sbdcrushers.com/

Original comment by arunraj....@gmail.com on 10 Sep 2012 at 11:04

GoogleCodeExporter commented 9 years ago
awesome works great sir

http://www.mafraq-hotel.com/

http://www.lynxauto.jp/

Original comment by arun.sum...@gmail.com on 1 Oct 2012 at 1:10

GoogleCodeExporter commented 9 years ago
I love your blog, I recommend to all people who love this kind of post to visit 
this site and blog of great interest to his listeners.
www.seteautos.es

Original comment by radk...@gmail.com on 8 Oct 2012 at 7:29

GoogleCodeExporter commented 9 years ago
I love your blog, I recommend to all people who love this kind of post to visit 
this site and blog of great interest to his listeners.<a 
href="http://www.seteautos.es">Coches segunda mano en malaga</a>, 

Original comment by radk...@gmail.com on 9 Oct 2012 at 8:54

GoogleCodeExporter commented 9 years ago
Checking to use this in some of our projects, targeting first to 
https://www.mayoflor.com

Original comment by i...@akuamedia.com on 13 Mar 2013 at 9:58

GoogleCodeExporter commented 9 years ago
works great ..Great dude..

http://www.vmx-me.com/

http://gemuniformdubai.com/

Original comment by sumtech...@gmail.com on 12 May 2013 at 8:27

GoogleCodeExporter commented 9 years ago
Thank you 4 this code

http://fountainheadworldwide.com/

Original comment by sumtech...@gmail.com on 25 May 2013 at 2:03

GoogleCodeExporter commented 9 years ago
works great ..Great dude.

http://macnross.com/

Original comment by sumtech...@gmail.com on 12 Jun 2013 at 9:02

GoogleCodeExporter commented 9 years ago
Exelent, it help me!

http://www.lockcraftproducts.com

Original comment by Lockcraf...@gmail.com on 22 Jun 2013 at 7:54

GoogleCodeExporter commented 9 years ago
Great yar..Thanks

http://laundrygroup.ae/

Original comment by sumtech...@gmail.com on 29 Jun 2013 at 12:58

GoogleCodeExporter commented 9 years ago
Excelent!... Thanks!
http://www.efectosps.com
http://www.editordefotosonline.net

Original comment by efecto...@gmail.com on 6 Jul 2013 at 7:13

GoogleCodeExporter commented 9 years ago
Excellent Code

http://www.exercise-me.com/

Original comment by exercise...@gmail.com on 17 Jul 2013 at 3:01

GoogleCodeExporter commented 9 years ago
Excellent work. Thanks!

http://www.neumaticosbaratosweb.es

Original comment by nand...@gmail.com on 14 Aug 2013 at 6:50

GoogleCodeExporter commented 9 years ago
Excellent Work..Great

http://pranavamdubai.com/

Original comment by sumtech...@gmail.com on 3 Sep 2013 at 8:55

GoogleCodeExporter commented 9 years ago
Thanks for share

http://majesticrentacar.ae/

Original comment by sumtech...@gmail.com on 15 Sep 2013 at 12:36

GoogleCodeExporter commented 9 years ago
Thanks 4 Share
http://www.egadgetsguru.com/

Original comment by arunraj....@gmail.com on 5 Oct 2013 at 8:27

GoogleCodeExporter commented 9 years ago
Thank you very much for your kindness and efforts to helping us in many ways. 
More powers to you.
http://www.techchef.co

Original comment by techchef...@gmail.com on 3 Dec 2013 at 10:09

GoogleCodeExporter commented 9 years ago
Excellent! thank you man

http://www.todorepuestoselectro.com/

Original comment by ndi...@gmail.com on 11 Dec 2013 at 8:19

GoogleCodeExporter commented 9 years ago
Thank you!

http://www.decoracanape.com

Original comment by nand...@gmail.com on 18 Dec 2013 at 8:55

GoogleCodeExporter commented 9 years ago
Thanks 4 Share this code

http://www.alawalico.ae/

Original comment by sumtech...@gmail.com on 23 Dec 2013 at 12:42

GoogleCodeExporter commented 9 years ago
Excellent work. Thanks!
i have use implement to this site given below & get good benefit . 

http://www.mouzlo.com

Original comment by mouzlo.i...@gmail.com on 24 Dec 2013 at 7:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you!

http://www.hondaforo.com

Original comment by josevlu...@gmail.com on 24 Feb 2014 at 11:04

GoogleCodeExporter commented 9 years ago
this is great info

http://www.movileslibresbaratos4g.com

Original comment by dalvasan...@gmail.com on 24 Feb 2014 at 11:10

GoogleCodeExporter commented 9 years ago
Than you very pleased with the help

Dani Barron
http://www.todowhatsapp.com

Original comment by onaq...@gmail.com on 5 Mar 2014 at 9:53

GoogleCodeExporter commented 9 years ago
very good work. thanks!

www.eliminarvirusweb.com

Original comment by nand...@gmail.com on 8 Mar 2014 at 10:58

GoogleCodeExporter commented 9 years ago
very good work. thanks!

http://www.eliminarvirusweb.com

Original comment by nand...@gmail.com on 8 Mar 2014 at 10:58

GoogleCodeExporter commented 9 years ago
Thank you friend!

http://www.recambiosautomovilweb.com

Original comment by nand...@gmail.com on 8 Mar 2014 at 11:05

GoogleCodeExporter commented 9 years ago
Nice info

Original comment by ahmedzmi...@gmail.com on 2 Apr 2014 at 7:02