如何在android中测试应用内购买?

发布于 2024-12-23 07:21:57 字数 53 浏览 1 评论 0原文

我想在发布之前测试应用内购买。我如何为此创建一个测试帐户?谁能帮我办理所有需要办理的手续吗?

I want to test in-App purchase before publishing.How do i create a test account for this ? Can anyone help me with all procedures need to be done ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

缘字诀 2024-12-30 07:21:57

尝试使用本教程

http://developer.android.com/guide/market/billing /billing_testing.html

基本上,您需要创建一个要用来测试应用内购买的特定/保留的产品 ID。特别是,您可以使用 android.test.purchased 产品 ID 来模拟成功购买。

Try using this tutorial

http://developer.android.com/guide/market/billing/billing_testing.html

Basically, you need to make a specific/reserved product ID that you want to test your in-app purchase with. In particular, you can use the android.test.purchased product ID to simulate a successful purchase.

站稳脚跟 2024-12-30 07:21:57

您只需在购买操作期间使用以下产品 ID 中的一个:

android.test.purchased

android.test.canceled

android.test.refunded

android.test.item_unavailable

通过使用一组受限的产品 ID,您可以触发来自 Google Play 的静态响应,以便您可以测试您的应用是否正确处理所有可能的状态。将 Play Billing Library 集成到我们的应用程序中或进行仪器测试时,您应该使用它。

You just use one on the following product IDs during a purchase operation:

android.test.purchased

android.test.canceled

android.test.refunded

android.test.item_unavailable

By using a restricted set of product IDs, you can trigger static responses from Google Play, so you can test that your app correctly handles all the possible states. You should use this when integrating the Play Billing Library into our app, or for instrumentation testing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文