Android 应用内计费 : catch “You already have a pending order for this item”

标签 android in-app-billing

如果用户尝试购买某物两次,Android 电子市场会返回错误“您已有该商品的待处理订单”。我可以在申请中处理这种情况吗?

最佳答案

来自 Android 开发者网站:

http://developer.android.com/guide/market/billing/billing_integrate.html#billing-service

Important: If a user purchases a managed item, you must prevent the user from purchasing the item again while the original transaction is pending. If a user attempts to purchase a managed item twice, and the first transaction is still pending, Android Market will display an error to the user; however, Android Market will not send an error to your application notifying you that the second purchase request was canceled. This might cause your application to get stuck in a pending state while it waits for an IN_APP_NOTIFY message for the second purchase request.

关于Android 应用内计费 : catch “You already have a pending order for this item” ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7713119/

相关文章:

AndroidManifest.xml 文档中跟在根元素之后的标记必须格式正确

android - 如何识别试用用户?

android - mService.consumePurchase(3, packageName, purchaseToken) 总是返回 RESULT_DEVELOPER_ERROR = 5 - 提供给 API 的参数无效

java - 使用 Dropbox API 共享文件夹时出现模式不匹配错误

java - 使用 Intent 打开文件 (Android)

java - 在opengl es中连接轮廓渲染

android - 应用内购买更新后使用了错误的帐户

android - InAppBilling v3 IabResult 响应代码 BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED

Android 应用内购买或第三方支付网关

java - Android Xml解析 "embedded values"