see http://groups.
google.com/group/google-checkout-api-php/browse_thread/threa
d/3c838493553c632f?hl=en
On 8/7/07, comu hotmail.com <comu hotmail.com> wrote:
>
> I setpup google checkout, payment is going well and
after the payment
> is complete I get the callback to my site.
>
> In the checkout page I am setting 3 merchantprivatedata
items:
> $cart->SetMerchantPrivateData(
> new MerchantPrivateData(
> array(
>
"cart-id" => $order_id,
>
"code-id" => $code_id,
>
"user-id" => $user_id
> )
> )
> );
>
> When I get the notification in my callback page this is
all I get
> (this is the debug of the response I get)
> I am decomposing the array I get as a result, printing
everything and
> there are no private merchant data items around.
>
>
> root=order-state-change-notification
> data=Array
> charged CHARGED
> key order-state-change-notification
> key2 xmlns:http://checkout.g
oogle.com/schema/2
> key2 serial-number:354235836232855-00009-1
> key2 timestamp:Array
> key3 VALUE:2007-08-07T17:21:21.000Z
> key2 google-order-number:Array
> key3 VALUE:354235836232855
> key2 new-fulfillment-order-state:Array
> key3 VALUE:PROCESSING
> key2 new-financial-order-state:Array
> key3 VALUE:CHARGED
> key2 previous-fulfillment-order-state:Array
> key3 VALUE:PROCESSING
> key2 previous-financial-order-state:Array
> key3 VALUE:CHARGING
> charged CHARGED
>
>
>
> THIS IS WHAT I SEE I SHOULD BE GETTING (SOMETHING LIKE
THIS?) but the
> response I get doesn't look like that at all.
>
>
------------------------------------------------------------
-----------
> <?xml version="1.0"
encoding="UTF-8"?>
> <merchant-calculation-callback xmlns="http://checkout.google.co
m/
> schema/2">
> <shopping-cart>
> <merchant-private-data>
>
<affiliate-code>01234</affiliate-code>
> </merchant-private-data>
> <cart-expiration>
>
<good-until-date>2007-12-31T23:59:59-05:00</good-un
til-
> date>
> </cart-expiration>
> <items>
> <item>
>
<merchant-item-id>GGLAA1453</merchant-item-id>
> <item-name>Dry Food
Pack</item-name>
> <item-description>One pack of
nutritious dried food
> for emergencies.</item-description>
> <quantity>1</quantity>
>
<tax-table-selector>food</tax-table-selector>
> <unit-price
currency="USD">4.99</unit-price>
> </item>
> <item>
>
<merchant-item-id>MGS2GBMP3</merchant-item-id>
> <item-name>Megasound 2GB MP3
Player</item-name>
> <item-description>This portable
MP3 player stores 500
> songs.</item-description>
> <quantity>1</quantity>
> <unit-price
currency="USD">179.99</unit-price>
> <merchant-private-item-data>
>
<merchant-product-id>1234567890</merchant-product-
> id>
> </merchant-private-item-data>
> </item>
> </items>
> </shopping-cart>
>
> <buyer-language>en_US</buyer-language>
> <calculate>
> <addresses>
> <anonymous-address
id="739030698069958">
>
<country-code>US</country-code>
> <city>Mountain View</city>
> <region>CA</region>
>
<postal-code>94043</postal-code>
> </anonymous-address>
> <anonymous-address
id="421273450774618">
>
<country-code>US</country-code>
> <city>New York</city>
> <region>NY</region>
>
<postal-code>10022</postal-code>
> </anonymous-address>
> </addresses>
> <tax>true</tax>
> <shipping>
> <method name="SuperShip"/>
> <method name="UPS
Ground"/>
> </shipping>
> <merchant-code-strings>
> <merchant-code-string
code="GiftCert012345"/>
> <merchant-code-string
code="FirstVisitCoupon"/>
> </merchant-code-strings>
> </calculate>
> </merchant-calculation-callback>
>
------------------------------------------------------------
--------
>
>
> I need to get the private merchant data to get the
order_id that has
> been paid and that way I can identify the order that
needs to be
> updated.
>
> Could you please advise on what I am doing wrong ?
>
> Thanks,
>
> Juan
>
>
> >
>
--
pablof
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "API Integration Basics" group.
To post to this group, send email to
google-checkout-api-integration googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checko
ut-api-integration?hl=en
-~----------~----~----~----~------~----~------~--~---
|