我创建了一个应用程序,其中有应用程序内购买,每月自动续订。在第一次成功付款时,我调用了一个网络服务,我在其中将用户设置为高级。
现在,如果用户从谷歌服务器手动取消了付款,我怎么知道用户已经取消了他/她的订阅。
是否有一些 PHP 代码查询或来自 android 我必须在后台调用一些东西来检查状态?
提前谢谢你
最佳答案
我还没有测试过这个,但是你可以使用 INAPP_PURCHASE_DATA 中的 autoRenewing
字段吗?
If true, the subscription is active, and will automatically renew on the next billing date. If false, indicates that the user has canceled the subscription.
http://developer.android.com/google/play/billing/billing_reference.html#getBuyIntent
显然,添加了或至少记录了 autoRenewing
字段 in the beginning of 2015 .
关于java - 检查 Android 中应用内订阅的状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31957406/