Hey all,
So I’ve recently started setting up in-app purchases, and I can’t get my products to ever load into the list of valid products. All of my products always print out as invalid when I try to load them with the following function:
[lua]local productIdentifiers = {
“MyItem1”,
“MyItem2”,
“MyItem3”,
“MyItem4”,
“MyItem5”
}
function loadAllProducts()
function loadProductsCallback(event)
print(“showing products”, #event.products)
for i=1, #event.products do
local currentItem = event.products[i]
print(currentItem.title)
print(currentItem.description)
print(currentItem.price)
print(currentItem.productIdentifier)
end
print(“showing invalidProducts”, #event.invalidProducts)
for i=1, #event.invalidProducts do
print(event.invalidProducts[i])
end
end
store.loadProducts( productIdentifiers, loadProductsCallback )
end[/lua]
I’ve tried using just the product ID and the full identifier (com.myCompany.myApp.productName), but both of these just say that the products are invalid. The products are all showing up correctly in iTunes Connect, and its been about 36-48 hours since I set them up, so the initial 24 hours wait period should be cleared by now.
Any ideas what it could be? I’ve looked through dozens of forum posts with suggestions, but none of them have worked for me. Is there something simple I’m missing?
Thanks [import]uid: 138013 topic_id: 31939 reply_id: 331939[/import]