应用内结算V3

时间:2013-02-27 07:28:11

标签: android in-app-billing

我是应用内结算Google Play的新手,我从谷歌下载示例并获得了TrivialDrive项目。我只是将SKU_GAS更改为"android.test.purchased",但在我成功购买燃料后,我得到了结果:

02-27 14:24:40.882: D/TrivialDrive(11805): Consumption finished. Purchase: PurchaseInfo(type:inapp):   
{"packageName":"com.example.android.trivialdrivesample","orderId":"transactionId.android.test.purchased","productId":"android.test.purchased","developerPayload":"","purchaseTime":0,"purchaseState":0,"purchaseToken":"inapp:com.example.android.trivialdrivesample:android.test.purchased"}, result: IabResult: Successful consume of sku android.test.purchased (response: 0:OK)

我的问题为什么purchaseTime = 0?什么是developerPayload?谢谢

1 个答案:

答案 0 :(得分:1)

您将获得purchaseTime=0,因为您使用的是Android测试产品:android.test.purchased。关于developerPayload这里是api解释:

A developer-specified string that contains supplemental information about an order. You can specify a value for this field when you make a getBuyIntent request.

您可以在此处找到更多信息Android In-App Billing