如何在 Google play developer console 中取消测试订阅

How to cancel test subscription in Google play developer console

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

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

假设您正在测试订阅时获得令牌的真实交易,您可以尝试使用 Google Play Developer API > Cancel Subscription[=16= 取消订阅]

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.