gpt4 book ai didi

Android 应用内结算订阅测试不起作用

转载 作者:行者123 更新时间:2023-11-28 20:08:20 26 4
gpt4 key购买 nike

我正在尝试测试应用内结算订阅。我的个人账户和我的开发者账户是一样的。我无法使用此帐户购买自己的产品,因此,我需要使用其他帐户进行测试。以下是我遵循的步骤:

  • 创建了一个新帐户(我们称之为帐户 B)
  • 在我手机上的 Google Play 上添加了帐户 B
  • 上传了已签名的 apk 以进行 Beta 测试
  • 创建了 Beta 测试人员列表并添加了帐户 B
  • 在 Firefox 中连接到我手机上的帐户 B,转到测试链接,选择加入并安装应用程序(来自 Firefox,而不是来自 Play 商店)
  • 买了一件商品
  • 已收费(并自动退款 -_- ...)

所以,它似乎并不完全有效。再次阅读developer guide ,我看到当一个账户被设置为测试账户时,在应用内结算弹出窗口中明确表示不会向您收费:

However, Google Play marks test purchases with a notice across the center of the purchase dialog, for easy identification

在我的弹出窗口中没有这样的东西。有谁知道哪里可能出错?

我在 stackoverflow 上看到一些问题,如果测试帐户不是 Google Play 应用的主帐户,则可能无法设置手机进行测试,是这样吗?

编辑:我将一个 friend 的帐户添加到列表中并请他进行测试。他手机上只有一个账号。和我一样,没有任何迹象表明他不会被起诉(所以,我猜他会和我一样)。

编辑:我在指南中看到了这一点:

Note: For test subscription purchases, leave the orderId field blank. You can use the purchaseToken field to identify test purchases.

“对于测试订阅购买,请将 orderId 字段留空”是什么意思?我需要在这里做些什么吗,或者他们的意思是在响应中,该字段留空?

最佳答案

However, Google Play marks test purchases with a notice across the center of the purchase dialog, for easy identification

购买对话框应显示一条消息,如下图所示:

enter image description here

Note: For test subscription purchases, leave the orderId field blank. You can use the purchaseToken field to identify test purchases.

这意味着测试购买的 orderId 字段在响应中为空。这是因为没有下真实订单,因此没有为测试购买创建订单 ID。

更新
对于测试购买,为授权用户创建许可证测试帐户。在 Developer Console 中,转到“设置”>“帐户详细信息”,然后在“许可测试”部分中,将地址添加到具有测试访问权限字段的 Gmail 帐户。

关于Android 应用内结算订阅测试不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34712122/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com