Hi All,
I am trying to get product price from App store and display it in the app as text. This is how I am doing
local function loadedCallback(e)
for i=1, #e.products do
table.insert(localizedPrices, i, tostring(e.products[i].price));
end
end
store.loadProducts(productID, loadedCallback);
This code is in a separate file names iap.lua. while localizedPrices is an array. Now I try to get price from another lua file like this. iap.localizedPrices[item No.]. When tested in sandbox environment it gives error and treats localizedPrices as nil. So app crashes. Please help me about this and guide me where I am wrong ?
I will be thankful.
Mueed [import]uid: 126619 topic_id: 37606 reply_id: 67606[/import]