2012-07-11 124 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草案),你也需要支付! :)