I am trying to integrate a shopping basket with google checkout. The information when the checkout button is clicked is sent via hhtp POST to my php file.
Currently the information is in the following format:
Array (
[0] => ShoppingCartEntry Object (
[quantity] => 1
[productID] => 00001
[price] => 4.99
[name] => Full English
[description] => Eggs, Beans, Sheesh Kebab Served with Toast )
[1] => ShoppingCartEntry Object (
[quantity] => 2
[productID] => 0002
[price] => 2.5
[name] => Cheese Salad
[description] => Cheese Salad Sandwich ) )
However google checkout requires it to be:
[item-quantity]
[item-id]
[item-price]
[item-name]
[item-description]
Is there an way to change the label?
I thought it would be something similar to this:
foreach ($entries as $entry) {
$entry->description = $item-description;
}
However this returns 0.
Any help would be appreciated as I have been struggling with this for a week!! 😕