Thank you very much . I was able to code AIP based on the documentations you suggested . I have 1 last question: Do you have any example or point me to the right direction with the issue below ? I have this button (below) . How do I hide this button if the users have already purchased the product “fullversion” ? In another word, I only want to show the button to users who have not yet brought the "“ullversion” product so they can buy the product ?
thanks
local function handleButtonEvent( event )
local phase = event.phase
if “ended” == phase then
store.init( storeTransaction )
store.purchase( {“fullversion”} )
end
end
– Create a group
local group = display.newGroup()
– Create the button
local myButton = widget.newButton
{
defaultFile = “BuyFullVersion.png”,
id = “button_1”,
label = “Buy Full Version”,
onEvent = handleButtonEvent,
}
group:insert( myButton )