Hi all, and Rob, and Simon
I have some trouble to “contact” my IAP products from my ios store.
I have created 7 in-app purchases product in my ios store.
i correctly have coded the iap plugin, which star with :
iap.init(iapOptions)
then, later, the store is well opened because the following code works :
if (iap.isStoreAvailable()) then iap.loadProducts(loadProductsListener) end
i just use the IAP BADGER code to show me which product i have in my ios store :
local function loadProductsListener(raw, products) --Debug table print function - this just prints the given table in a more human readable form local function debugPrint ( t ) local print\_r\_cache={} local function sub\_print\_r(t,indent) if (print\_r\_cache[tostring(t)]) then print(indent.."\*"..tostring(t)) else print\_r\_cache[tostring(t)]=true if (type(t)=="table") then for pos,val in pairs(t) do if (type(val)=="table") then print(indent.."["..pos.."] =\> "..tostring(t).." {") sub\_print\_r(val,indent..string.rep(" ",string.len(pos)+8)) print(indent..string.rep(" ",string.len(pos)+6).."}") elseif (type(val)=="string") then print(indent.."["..pos..'] =\> "'..val..'"') else print(indent.."["..pos.."] =\> "..tostring(val)) end end else print(indent..tostring(t)) end end end if (type(t)=="table") then print(tostring(t).." {") sub\_print\_r(t," ") print("}") else sub\_print\_r(t," ") end print() end -- local function debugPrint ( t ) print "------------------------" debugPrint(products) print "------------------------" end
and the result on log at screen after 5 seconds, is :
------------------------ table : 0x121312313 { } FIRSTNAME-LASTNAME APPNAME[846] \<Notice\>: ------------------------
where FIRSTNAME and LASTNAME are mine, and APPNAME the name of my project.
and the table is empty…
So why is the table empty whereas i have created products in iTunes Connect, and that it seems it connect to the store ? …
Any help would be appreciated
thanks a lot !