开发者

Google Checkout XML API - Float Quantity?

开发者 https://www.devze.com 2023-01-12 10:19 出处:网络
I\'m trying to send cart information to Google Checkout using the XML API. My products are sold by tons and partial tons, so sometimes the quantity is 1.5, for ex开发者_JS百科ample. It appears the API

I'm trying to send cart information to Google Checkout using the XML API. My products are sold by tons and partial tons, so sometimes the quantity is 1.5, for ex开发者_JS百科ample. It appears the API only accepts integers for quantities: http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Tag_Reference.html#tag_quantity

Is there any way around this? I'd like to send quantities with decimals (aka a float, not an integer).


You probably want to use item-weight which can be expressed in decimals:

http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Tag_Reference.html#tag_item-weight

0

精彩评论

暂无评论...
验证码 换一张
取 消