有没有办法通过 Google Play Billing API 取消订阅,特别是使用 BillingClient,或者我必须通过 Google Play Developer API 来取消订阅?您不能以与订阅相同的方式取消订阅,这似乎违反直觉,但我找不到解决方法。请帮忙。
最佳答案
BillingClient
不支持取消(不太确定谷歌对此的推理是什么)。
您必须使用 Purchases.subscriptions:cancel .我不确定,但我相信只有应用发布者可以调用该 API; IOW,用户不能代表自己调用它。显然,必须有一个 API 可以处理用户的 Google 帐户凭据,但我不知道它是什么。
Google Play 团队于 2018 年 6 月 13 日发送的一封电子邮件建议指导用户通过以下方式之一管理其订阅:
On Android, open the Google Play Store, then tap Menu > Subscriptions.
On a computer, go to play.google.com, then in the left menu click My subscriptions.
On either Android or a computer, use the URL http://play.google.com/store/account/subscriptions to open the user's list of subscriptions.
For active subscriptions, use the deep-link http://play.google.com/store/account/subscriptions?package=samplePackage&sku=sampleSKU with your package and SKU name to directly open the page to manage the user's specific subscription. Learn more about the manage subscription deep-link by checking out our documentation for subscription-specific features.
关于android - 使用 Billing API 取消 Google Play 订阅?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52836314/