in-App Purchase loadProducts problem!

Hi,
May i ask about the loadProducts function, when i entered the productID (com.companyname.gamename.inapppurchase) and call the loadProducts function. it nothing to show. is it the setting problem or the code? Here is some of the code:

local listOfProducts =
{
“com.companyname.gamename.inapppurchase”,
}
function loadProductsCallback( event )
– Debug info for testing
print(“In loadProductsCallback()”)
print(“event, event.name”, event, event.name)
print(event.products)
print("#event.products", #event.products)
io.flush() – remove for production

– save for later use
validProducts = event.products
invalidProducts = event.invalidProducts
end

store.loadProducts( listOfProducts, loadProductsCallback )

Thanks a lot!!
[import]uid: 36507 topic_id: 11762 reply_id: 311762[/import]

Are you using jailbroken device to test on device?
Have you add the iap product on itunesconnect? [import]uid: 41267 topic_id: 11762 reply_id: 42816[/import]

JB? but i don’t see anything related to this issue.
IAP, yes, setup and activate [import]uid: 36507 topic_id: 11762 reply_id: 42821[/import]

In my case, JB made IAP testing when developing always fail. So, try to use non-JB device just in case [import]uid: 41267 topic_id: 11762 reply_id: 42824[/import]

@gamecreme,

Did you fix the problemn?

My app is telling me my products are not valid but they are in iTunesConnect set up properly… [import]uid: 73038 topic_id: 11762 reply_id: 43363[/import]

@gordoneverett0

local listOfProducts =
{
“com.companyname.gamename.inapppurchase”,
}

I believe Corona guys need to do some revision on there API / Docs.
It took us 2 days to finally figure this out.
The problem got point out by a cocos2d developer.

within the “”
simply type your inApp Product ID

I had my done like the following
local listOfProducts =
{
“slimeeadremover”
}

and magic happen, it worked.
Hope this help.
V [import]uid: 36507 topic_id: 11762 reply_id: 43423[/import]

@gamecreme

Thanks, I was driving crazy to make it work. [import]uid: 53514 topic_id: 11762 reply_id: 43520[/import]

@ isidrogarciaher
So this work for you? [import]uid: 36507 topic_id: 11762 reply_id: 43521[/import]

Yes thanks, I replaced the full qualified name by just the product id and it works fine. [import]uid: 53514 topic_id: 11762 reply_id: 43527[/import]

this solved my problems thx [import]uid: 89663 topic_id: 11762 reply_id: 72563[/import]