Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Android In-app Usage on Gideros — Gideros Forum

Android In-app Usage on Gideros

mertocanmertocan Member
edited December 2012 in General questions
I tried to use in-app purchase on my android game. However , in my country making transaction is not allowed yet. So , i couldnt try it completely. I think it should be right. Do i have to add something like ComfirmNotification() ? or the codes on the below is enough to using this pluggin ?

require("googlebilling")
 
local function requestPurchase(event)	
 
	if event.responseCode ~= nil then
		print("error", event.responseCode)
		return
	end
 
	--unlock
end
 
if googlebilling:checkBillingSupported("productType") then
 
	googlebilling:addEventListener(Event.REQUEST_PURCHASE_COMPLETE, requestPurchase)
 
	stage:addEventListener(Event.MOUSE_DOWN, function()
		googlebilling:requestPurchase("ID", "productType", "23423")
	end)
 
end
Sign In or Register to comment.