【发布时间】:2019-10-08 13:03:15
【问题描述】:
我们的大部分购买在 3 天 30 分钟后一直被取消,我认为这是待处理购买状态的结果。但是,关于如何准确处理待处理购买的文档很少。而且,由于某种原因,即使我自己是测试人员,我也无法测试它,因为购买方法上没有“慢卡”选项。另外,我们没有后端服务器,请备份我们。
这是我从官方文档中找到的解释:
void handlePurchase(Purchase purchase) {
if (purchase.getPurchaseState() == PurchaseState.PURCHASED) {
// Acknowledge purchase and grant the item to the user
} else if (purchase.getPurchaseState() == PurchaseState.PENDING) {
// Here you can confirm to the user that they've started the pending
// purchase, and to complete it, they should follow instructions that
// are given to them. You can also choose to remind the user in the
// future to complete the purchase if you detect that it is still
// pending.
}
}
查看PENDING状态的解释。 “要完成购买,他们应该遵循给他们的指示”是什么意思?这些指令到底是什么?我们需要将用户重定向到 Google Play 还是什么?它没有具体说明该做什么,并且让我感到烦恼,因为购买被无缘无故地取消,或者出于这个原因。如何完成待处理的购买?什么都没有,或者我找不到它,所以我最终来到了这里。
我希望你能帮我解决这个问题。谢谢。
【问题讨论】: