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
[deleted comment]
GoogleCodeExporter commented 9 years ago
Great adamsc, thank you very much!

http://www.vipdescargas.com

Original comment by jvrecamb...@gmail.com on 23 May 2014 at 4:28

GoogleCodeExporter commented 9 years ago
Plan your adventure with Cappadocia Tours, your personal consultant for Turkey. 
Started in Cappadocia and now expending its service web in all country, and 
soon getting international, specializing in customized escorted tours.
Our approach will provide opportunities to meet locals live in their daily 
routine as well as traditional events. You will be taken to deep Turkey, like 
Cappadocia, off the beaten trail, to the mountain villages where the life goes 
in the same pace as thousands of years ago. 
Accommodation is in selected hotels with charm, representing the character of 
the area you visit. The warmth of your hosts will make a big difference to your 
look at the region. We arrange historical restored castles or monasteries, 
Ottoman palaces and cave hotels.
http://www.cappadociacavetravel.com
http://www.cappadociatraveltour.com
http://www.cappadociaballoonmuskara.com
http://www.muskaratravel.com.tr

Original comment by cappadoc...@gmail.com on 9 Jun 2014 at 3:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Very Good!

http://www.fotomontajesparafotos.net
http://www.photofuniaefectos.com
http://www.cuadrosparafotos.net

Original comment by efecto...@gmail.com on 20 Jun 2014 at 8:17

GoogleCodeExporter commented 9 years ago
Good and Thanks

http://freepcappsdownload.com/
http://freepcappsdownload.com/2014/07/download-deer-hunter-2014-for-pc/
http://freepcappsdownload.com/2014/06/facetime-for-pc-download/

Original comment by arunraj....@gmail.com on 23 Jul 2014 at 11:08

GoogleCodeExporter commented 9 years ago
Very Good Friend!

http://www.blog-nutricion-web.com
http://www.nutricionweb.es

Original comment by Nutricio...@gmail.com on 29 Aug 2014 at 3:07

GoogleCodeExporter commented 9 years ago
Oçu YeaH!

http://blog-nutricion-web.com
http://nutricionweb.es

Original comment by Nutricio...@gmail.com on 29 Aug 2014 at 3:08

GoogleCodeExporter commented 9 years ago
Rhanks!

http://www.blog-nutricion-web.com
http://www.nutricionweb.es

Original comment by Nutricio...@gmail.com on 29 Aug 2014 at 3:09

GoogleCodeExporter commented 9 years ago
Guau!

http://nutricionherbal.es

Original comment by nand...@gmail.com on 20 Sep 2014 at 11:24

GoogleCodeExporter commented 9 years ago
Thanks!

http://es.wordpress.com/tag/recambios-automovil/

Original comment by nand...@gmail.com on 26 Oct 2014 at 1:03

GoogleCodeExporter commented 9 years ago
Good Job!

http://es.wordpress.com/tag/neumaticos-baratos/

Original comment by nand...@gmail.com on 26 Oct 2014 at 1:03

GoogleCodeExporter commented 9 years ago
Very well!

http://es.wordpress.com/tag/nutricion/

Original comment by nand...@gmail.com on 26 Oct 2014 at 1:04

GoogleCodeExporter commented 9 years ago
Man ! It's really works 

http://vegmomos.com

Original comment by gdut...@gmail.com on 21 Nov 2014 at 4:03

GoogleCodeExporter commented 9 years ago
Muy buen trabajo a tener muy encuenta, mis felicitaciones.
http://graficflower.com

Original comment by graficfl...@gmail.com on 22 Nov 2014 at 11:50

GoogleCodeExporter commented 9 years ago
thanks!

http://regaloszoe.com

Original comment by nand...@gmail.com on 15 Feb 2015 at 10:30