2012-07-11 120 views
0

我正在阅读本教程http://developer.android.com/guide/google/play/billing/billing_testing.html,它真的让我感到困惑:)Android - 测试应用程序内计费是否需要向Android市场发布测试应用程序?

在本教程的一部分中,它讨论了我应该制作一个测试应用程序并将其发布到Google Play中。在本教程的另一部分,它讨论设置静态返回值,以便我可以模拟Google Play返回到我的应用程序的情况。

如果我想测试某人购买访问某个页面的流量,这里有什么正确的方法?

我已经有了买东西的代码。我只需要测试事务是否有效,返回值是否合适。

谢谢!

回答

1

如果你想测试真实的服务器,你需要上传你的APK文件为draft version无需发布它。

,因为他们说

Note: Making in-app billing requests with the reserved product IDs overrides the usual 
Google Play production system. When you send an in-app billing request for a reserved product 
ID, the quality of service will not be comparable to the production environment. 

所以...如果你想与您的产品ID,以测试你需要上传应用程序的签名版上的市场(如offcourse草案),你也需要支付! :)