kiranpatil353 / google-checkout-php-sample-code

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

MerchantPrivateData can't handle array within the array #73

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. $privateData = new MerchantPrivateData(array(
    'parent' => array(
        'child' => 'data'
    )
   ));
   $cart->SetMerchantPrivateData($privateData);
2. $curl = $cart->checkout_url; // gives out error

What version of the product are you using? On what operating system?
PHP Library 1.3.3

Please provide any additional information below.

The error was in googlecart.php, Line 1621 (in v1.3.3), it should be
$this->_recursiveAdd($xml_data, $value);
// Not $name

Original issue reported on code.google.com by var...@gmail.com on 28 Jan 2013 at 8:44