0

我目前正在将 GC 实施到我的项目中。我可以正常发布和接收订单。我现在遇到的问题是尝试发布到 GC 以将订单状态更新为已交付。

我想实现这个:

_type=ship-items
&google-order-number=ORDER_NUMBER
&item-shipping-information-list.item-shipping-information-1.item-id.merchant-item-id=A1
&item-shipping-information-list.item-shipping-information-1.tracking-data-list.tracking-data-1.carrier=UPS
&item-shipping-information-list.item-shipping-information-1.tracking-data-list.tracking-data-1.tracking-number=5555AbCd
&send-email=true

可以在这里看到:https ://developers.google.com/checkout/developer/Google_Checkout_HTML_API_Line_Item_Shipping#Ship_Items

我不明白的是如何将信息发送给 GC

我正在使用以下表格发送我的购物车信息,效果很好:

<form method="POST" action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/MERCHANT_ID" accept-charset="utf-8">
<input type="hidden" name="item_name_1" value="PRODUCT_NAME" />
<input type="hidden" name="item_description_1" value="PRODUCT_DESCRIPTION" />
<input type="hidden" name="item_quantity_1" value="1" />
<input type="hidden" name="item_price_1" value="20.00" />
<input type="hidden" name="item_currency_1" value="GMP" />
</form>

这是我应该发送交货通知的方式吗?

4

1 回答 1

0

You probably want to look at the Checkout Order Processing API.

Some docs below:

https://developers.google.com/checkout/developer/Google_Checkout_XML_API_Processing#order_processing_api

http://support.google.com/checkout/sell/bin/answer.py?hl=en&answer=25397

Also look at the Checkout client libraries sample code:

https://developers.google.com/checkout/samplecode

于 2012-07-24T16:03:01.487 回答