如果用户尝试购买某物两次,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/