android - 使用 Billing API 取消 Google Play 订阅?

标签 android google-play-services play-billing-library

有没有办法通过 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/

相关文章:

android - 通过 Intent 发送未知对象而不分解它

android - 谷歌播放(问题 : Inaccurate Target Audience)

Android Studio 1.5 - 如何在 AS 中显示 google play 服务的 javadoc

android - 无法将 firebase 与具有 flavor 和尺寸的即时应用程序连接

android - Google Play Billing Library 1.0 (2017) - 破解更容易吗?

java - Android Google Pay 结算 - 响应 4 : ITEM_UNAVAILABLE

java - 为什么在 launchBillingFlow 之后没有调用 onPurchasesUpdated

android - 构造函数 TimePickerDialog 未定义

安卓 JNI : FindClass() cannot find my class

android - 多个通知的未决意向