如何在不收费的情况下测试IAB

How to test IAB without being charged

我正在尝试通过阅读这篇文章来测试 In App Purshase 而不会在 Unity 上收费 https://developer.android.com/google/play/billing/billing_testing.html

我的应用程序发布为 Alpha 版本,使用真实密钥签名。我使用另一个 Google 帐户下载了它,该帐户是我用来发布该应用程序的帐户。此帐户已添加到 Google Play 服务的测试人员列表和我的应用程序 Alpha 测试人员列表中。

问题是,当我想购买一件商品时,我从来没有看到 "test" 这个词,正如文档中所说的那样。

有人可以向我解释我应该执行哪些额外步骤以确保在不收费的情况下测试我的应用内结算吗?

非常感谢。

关注Testing In-app Purchases

设置测试购买

It’s easy to set up test purchases—any user account can be chosen to be a test account, and any user of a test account can make test purchases with any available payment method (even though there’s no charge to the payment method).

First, upload and publish in-app products that you want testers to be able to purchase. You can upload and publish in-app products in the Developer Console. Note that you can upload and publish your in-app items before you publish the APK itself.

Next, create license test accounts for authorized users. In the Developer Console, go to Settings > Account details, then in the License Testing section, add the addresses to Gmail accounts with testing access field. For more information, see Setting Up for Test Purchases.

Once you’ve added the users as license tester accounts and saved the change, within 15 minutes those users can begin making test purchases of your in-app products.

Google Play Console 的新版本于 4 月 17 日发布,我认为 Google Play Console 的法语版本尚未完全实现。

目前 "Test de licence" 部分可用。