如何在android中测试应用内购买?
我想在发布之前测试应用内购买。我如何为此创建一个测试帐户?谁能帮我办理所有需要办理的手续吗?
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用本教程
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.您只需在购买操作期间使用以下产品 ID 中的一个:
通过使用一组受限的产品 ID,您可以触发来自 Google Play 的静态响应,以便您可以测试您的应用是否正确处理所有可能的状态。将 Play Billing Library 集成到我们的应用程序中或进行仪器测试时,您应该使用它。
You just use one on the following product IDs during a purchase operation:
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.