我正在尝试在我的应用程序中实现应用程序购买。我正在尝试使用测试 ID 来检查流程。
当我android.test.purchased
作为商品 SKU 购买时,我收到以下回复作为购买
{"packageName":"com.sample.goo","orderId":"transactionId.android.test.purchased","productId":"android.test.purchased","developerPayload":"PRODUCT_SKU_AND_USER_ID_AND_DATE","purchaseTime":0,"purchaseState":0,"purchaseToken":"inapp:com.sample.goo:android.test.purchased"}
但是在很多地方我发现谷歌返回的数据格式如下
{
"nonce": 1165723044405495300,
"orders": [
{
"notificationId": "android.test.purchased",
"orderId": "transactionId.android.test.purchased",
"packageName": "com.company.appname",
"productId": "android.test.purchased",
"purchaseTime": 1335874740360,
"purchaseState": 0
}
]
}
我不确定为什么我没有收到上述格式的回复。
谁能告诉我这里有什么问题?