Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们在 Android 上的一款应用目前很容易受到 IAP 黑客攻击。我们希望避免这种情况,因为这会破坏一些基于网络的系统,也会损害我们的收入。
我们想知道在我们给他物品之前是否有办法验证购买收据。非常感谢。
也很抱歉我的英语非常糟糕,他们在某些时候可能听起来很粗鲁(有人告诉我),但我实际上很有礼貌。:)
方法是使用购买状态 API
您将在客户端进行计费流程,完成后,您会将令牌发送到服务器,然后可以检查购买状态。
如果状态是您所期望的,那么您将启用或将更新发送给用户。