Hi everyone,
I am new to Android’s IAP, and here is what happens:
-
I call store.loadProducts(listOfProducts, productCallback)
-
listOfProducts contains the IDS I specified on the developer console
-
productCallback: #event.products is always zero, products don’t get loaded.
Info: When I write “android.test.purchased” inside the listOfProducts, it gets loaded correctly, with price and everything.
Code:
local testText = display.newText("info", 50,50, "Arial", 20) local listOfProducts = { "buy1c", "buy2c", "buy3c", "buy4c", "buy5c" } local function productCallback(e) testText.text = ("Showing valid products:" .. #e.products) for a = 1,#listOfProducts do qTextPrice[a+1] = e.products[a].localizedPrice end qPrice.text = qTextPrice[qPrice.tier+1] end ... store.init("google", transactionCallback) store.loadProducts(listOfProducts, productCallback)