hi im looking at this http://coronalabs.com/blog/2013/09/03/tutorial-understanding-in-app-purchases/
This code as well
local function removeAds( event )
if event.phase == “began” then
event.target:setFillColor(224)
elseif event.phase == “ended” then
event.target:setFillColor(255)
if system.getInfo(“targetAppStore”) == “amazon” or system.getInfo(“targetAppStore”) == “google” then
store.purchase( “com.acme.superrunner.upgrade” )
else
store.purchase( { “com.acme.superrunner.upgrade” } )
end
end
return true
end
local buyBtn = display.newImageRect(“images/buy_button.png”, 614, 65)
group:insert( buyBtn )
buyBtn.x = display.contentCenterX - 465
buyBtn.y = 430
buyBtn:addEventListener( “touch”, removeAds )
where would i implement acually doing something after purchase like consumable item or unlocking levels