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 | 
 |