我的收据验证服务器已成功使用Purchase Status API(https://developers.google.com/android-publisher/v1_1/inapppurchases/get)来验证IAP收据,但响应缺少developerPayload。
我几个月来一直使用相同的API和相同的服务器代码,而且我总是得到developerPayload。截至2014年3月12日,它不见了。
我的回答:
{
"kind": "androidpublisher#inappPurchase",
"purchaseTime": "1394819545343",
"purchaseState": 0,
"consumptionState": 1
}
预期:
{
"kind": "androidpublisher#inappPurchase",
"purchaseTime": long,
"purchaseState": integer,
"consumptionState": integer,
"developerPayload": string
}
可能缺少开发人员有效负载的任何想法?
编辑:这是我的服务器日志中具有开发人员有效负载的最后一个订单:
{
"kind": "androidpublisher#inappPurchase",
"purchaseTime": "1394658352037",
"purchaseState": 0,
"consumptionState": 1,
"developerPayload": "cb9e60a2-1714-434c-ba40-e144f89a7e9f"
}
该订单上的日期是{3/12/2014 9:05:52 PM}
答案 0 :(得分:0)
我观察到了相同的行为,但今天它开始工作了。请再检查一次。谷歌似乎正在尝试API,在此期间,我发现了
首次验证返回dev有效负载(消费前)。但 后续的没有。
消费后购买时间发生变化。早些时候,订单的购买时间保持不变。
所以,我目前只在第一次使用它(在接受订单之前)。之后它似乎没有一致行为(我必须手动处理取消:-()
答案 1 :(得分:0)
它再次运作。显然这是服务中断。