android - 如何在 Google Play 开发者控制台中取消测试订阅

标签 android google-play in-app-billing developer-console in-app-subscription

我最初有测试帐户用于在 android 中测试应用程序内购买,但后来我删除了测试帐户并将应用程序从测试版转移到生产版。根据文档,这两个测试帐户都试图通过 Google Play 应用程序取消他们的测试订阅。尽管 Google Play 应用表示订阅已取消,但它仍然有效。即使尝试卸载应用程序。如何删除测试订阅?

我已从 Play 商店中删除了 Beta 测试 apk 并禁用了测试。我已经从许可页面以及授权的 Beta 测试人员列表中删除了所有测试帐户。 Beta 测试用户仍然报告有活跃的(每日)测试订阅。无论他们点击多少次取消,它仍然会在第二天更新。我需要删除它。它阻碍了我们的发展进程。

最佳答案

假设您正在使用订阅时获得 token 的真实交易进行测试,您可以尝试使用 Google Play Developer API 取消订阅 > Cancel Subscription

Purchases.subscriptions: cancel

Cancels a user's subscription purchase. The subscription remains valid until its expiration time.

HTTP request

POST https://www.googleapis.com/androidpublisher/v2/applications/packageName/purchases/subscriptions/subscriptionId/tokens/token:cancel

where

packageName string The package name of the application for which this subscription was purchased (for example, 'com.some.thing').

subscriptionId string The purchased subscription ID (for example, 'monthly001').

token string The token provided to the user's device when the subscription was purchased.

API 需要 authorisation .

同时检查 this

取消已完成的测试购买

Google Play accumulates completed test purchases for each user but does not pass them on to financial processing.

In some cases, you might want to manually cancel a test purchase to continue testing. To do so, open the app page in the Play Store. If the test purchase that you want to cancel is a subscription, you can also use the cancel() method of the Purchases.subscriptions API.

关于android - 如何在 Google Play 开发者控制台中取消测试订阅,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43149163/

相关文章:

android - 检索 Sku 详​​细信息时出错

android - 如何判断布局何时绘制?

android - 无法在模拟器上运行 Google Play 服务(需要更新 Google Play 服务)

android - Chromecast 字幕

android - 上线后如何访问Google Play上的Beta Testing APK?

android - 通过促销代码进行的应用内购买返回空的开发人员有效负载字符串

java - Android 应用内购买 NullPointerException Purchase.getSku()

Android:如何获取有关在 Google Play 开发者控制台中捕获的异常的信息?

java - 打开新 Activity 并更改微调器?

java - 无法访问从 instagram 标签搜索 api 返回的媒体对象