2

我是谷歌应用内计费的新手,我从谷歌下载示例并获得了 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?谢谢你

4

1 回答 1

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

于 2013-02-27T07:36:07.037 回答