android - Google Play 撤销了测试订阅

标签 android google-play google-play-services subscription auto-renewing

我正在开发一个订阅续订功能,在测试模式下,测试支付方式。问题是我们收到取消订阅 webhook,GooglePlay 取消订阅。的 来自参数:

​"cancelReason": "1"

来自 docs 的状态代码,

Subscription was canceled by the system, for example, because of a billing problem.

同样来自 docs

Revoking a subscription instantly removes access to the subscription and is usually done when you or Google suspects fraud.

通常,它会在续订后立即发送取消 webhook,即使它是成功的,所以有时我会收到两封关于续订成功和取消的电子邮件。在我的例子中,更新在 5 分钟后调用 ( doc )

有没有人知道,可能是什么原因?它是一些“谷歌反欺诈系统”。因为出于测试目的,我们的订阅期很短,但价格很高。但是在我们做测试的时候,可能不应该反欺诈,测试支付方式,在没有真实交易的情况下。

最佳答案

问题是,我们没有acknowledge新订阅。
来自文档:

If you use the Google Play Billing Library version 2.0 or newer, you must acknowledge all purchases within three days. Failure to properly acknowledge purchases results in those purchases being refunded.

关于订阅:

For subscriptions, you must acknowledge any purchase that contains a new purchase token. This means that all initial purchases, plan changes, and re-signups need to be acknowledged, but you do not need to acknowledge subsequent renewals.

使用许可证测试器测试确认购买:

For purchases made by license testers, the acknowledgment window is shorter. Instead of three days, purchases are refunded and revoked if they are not acknowledged within five minutes.

更新 documentation 的变化

You should also verify that purchases are properly acknowledged as described in processing purchases. For purchases from license testers, a > purchase will be refunded after 3 minutes if your app does not acknowledge the purchase and you will receive an email about the cancellation. You can also check the Orders tab in the Google Play Console to see if an order was refunded after 3 minutes.

关于android - Google Play 撤销了测试订阅,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57295559/

相关文章:

android - 在 alpha 版本中更改 android 应用程序的包名称

android - 国际货币如何针对 Android 的应用内结算进行测试?

android - 具有 Retrofit、Coroutines 和 Suspend 功能的并行请求

android - imageSwitcher 和内存错误

java - 是否可以创建一个引用图片的数组

android - 如何为 Google Play Developers API 生成刷新和访问 token

android - 使用 Google 登录 Android 获取用户的出生日期和性别

java - Google Play 服务更新到版本 13 后,出现错误

java - Google Plus Api 运行时异常

java - 登录设备到文件