kmitgroup / google-checkout-php-sample-code

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

googlerequest.php $body undefined #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
PHP SDK 1.3.1

Try/catch block in googlerequest.php line 716 breaks the entire SDK request 
system?

Original issue reported on code.google.com by spi...@gmail.com on 5 Jun 2011 at 8:10

GoogleCodeExporter commented 9 years ago
I just ran into this issue, I think I fixed it by doing the following:

Replace:
        case 200:
          // Success
            $this->log->LogResponse($response);          
            return array(200, $body);
          break;

With
        case 200:
          // Success
            $this->log->LogResponse($response);          
            return array(200, $body_xml);
          break;

Original comment by wraithof...@gmail.com on 28 Jun 2011 at 2:04

GoogleCodeExporter commented 9 years ago
Update: A quick glance at the source reveals this same fix. However it's not 
yet in the zip.

Original comment by wraithof...@gmail.com on 28 Jun 2011 at 2:06

GoogleCodeExporter commented 9 years ago
I spent hours trying to understand why my code didn't work, when finally I 
discovered myself this very cause and I was going to post an issue right now. I 
wonder why the zip hasn't been updated since.

Original comment by ban...@gmail.com on 30 Dec 2011 at 10:21

GoogleCodeExporter commented 9 years ago
This change has been incorporated in v1.3.3 zip file

Original comment by rwap.services on 28 Aug 2012 at 9:51