我正在尝试为我的Android游戏设置应用内计费。Google Play并没有让它变得容易(叹息)。我偶然发现了一些开源库,似乎The SOOMLA Project更适合游戏。
他们的自述文件解释了如何更改android清单和所有内容,但没有说明如何请求事务。有没有人有使用这个库的经验,可以帮我入门?
发布于 2012-10-06 19:03:55
显然,我的问题让他们编辑了他们的自述文件,所以答案是:
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://stackoverflow.com/questions/12754240
复制相似问题