2012-10-05 36 views
1

請求交易,我試圖安裝應用內結算爲我的Android遊戲。 Google Play不會輕鬆(嘆息)。我遇到了一些開源庫,看起來像The SOOMLA Project是更適合遊戲的一款。與SOOMLA Android商店計費包裝

他們的自述文件說明如何更改Android清單和一切,但它並不表示如何請求交易。有沒有人有這個圖書館的經驗,可以幫助我開始?

+0

滑稽 - 我認爲他們只是固定的,因爲我自己的自述文件。堆棧溢出是一個非常棒的工具:-) – user1724027

回答

1

顯然,我的問題做出這樣的回答是他們編輯他們的自述文件:

StoreController.buyCurrencyPack(TEN_COINS_PACK.getProductId()); 

你必須定義它首先要根據自己的文檔。

VirtualCurrencyPack TEN_COINS_PACK = new VirtualCurrencyPack(
     "10 Coins",   // name 
     "A pack of 10 coins", // description 
     "themes/awsomegame/img/coins/10_coins.png", // image file path 
     "10_coins",   // item id 
     TEN_COINS_PACK_PRODUCT_ID, // product id in Google Market 
     1.99,     // actual price in $$ 
     10,     // number of currencies in the pack 
     COIN_CURRENCY, 
     CURRENCYPACKS_CATEGORY); 

https://github.com/soomla/android-store#in-app-purchasing