Google Checkout - XML API associate callback serial number with original order -


via xml api, how associate google checkout callback serial number original order?

on same line - serial number in "option b - submit server-to-server checkout api request" section of xml api doc correspond (format: serial-number="981283ea-c324-44bb-a10c-fc3b2eba5707")? relate serial sent callback url (numeric-only)?

the way i've done in past using <merchanrt-private-data> tag in original cart, like:

<checkout-shopping-cart xmlns='http://checkout.google.com/schema/2'>  <shopping-cart>   <merchant-private-data>    <merchant-note>[some secret cart on system]</merchant-note>   </merchant-private-data>   <items>    ...   </items>  </shopping-cart> </checkout-shopping-cart> 

then, after google has called serial number, use notification history api retrieve order details, includes private data, like:

<new-order-notification xmlns="http://checkout.google.com/schema/2" serial-number="[serial number google]">  <buyer-billing-address>   ...  </buyer-billing-address>  <timestamp>...</timestamp>  <google-order-number>...</google-order-number>  <order-summary>   <total-chargeback-amount currency="gbp">...</total-chargeback-amount>   <google-order-number>...</google-order-number>   <total-charge-amount currency="gbp">...</total-charge-amount>   <total-refund-amount currency="gbp">...</total-refund-amount>   <purchase-date>...</purchase-date>   <archived>false</archived>   <shopping-cart>    <merchant-private-data>     <merchant-note>[the secret cart system]</merchant-note>    </merchant-private-data>    <items>    </items>   </shopping-cart>   <order-adjustment>    ...   </order-adjustment>   <promotions />   <buyer-id>...</buyer-id>   <buyer-marketing-preferences>    <email-allowed>false</email-allowed>   </buyer-marketing-preferences>   <buyer-shipping-address>    ...   </buyer-shipping-address>   <order-total currency="gbp">...</order-total>   <fulfillment-order-state>new</fulfillment-order-state>   <financial-order-state>reviewing</financial-order-state>  </order-summary>  <shopping-cart>   <merchant-private-data>     <merchant-note>[the secret cart system]</merchant-note>   </merchant-private-data>   <items>   </items>  </shopping-cart>  <order-adjustment>   ...  </order-adjustment>  <promotions />  <buyer-id>...</buyer-id>  <buyer-marketing-preferences>   <email-allowed>false</email-allowed>  </buyer-marketing-preferences>  <buyer-shipping-address>   ...  </buyer-shipping-address>  <order-total currency="gbp">...</order-total>  <fulfillment-order-state>new</fulfillment-order-state>  <financial-order-state>reviewing</financial-order-state> </new-order-notification> 

i can use secret match orders details i'd stored in database previously.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -