Hello!
IAP work like a charm on Android but on iOS I can’t load the products.
Here is that part of my code.
local productIdentifiers = {
"com.mycompany.mygame.purchase",
}
local function productListener( event )
for i = 1,#event.products do
local plistener = native.showAlert( event.products[i].productIdentifier, "Οκ!", { "Back" } )
end
end
end
local function transactionListener( event )
if ( event.name == "init" ) then
store.loadProducts( productIdentifiers, productListener )
end
end
store.init( transactionListener )
The weird thing is that a few days ago this code was working!
I did my purchases / restores in Testflight!