Type Function Library licensing.* Return value none Revision 2017.3060 Keywords licensing, verify See also licensing.init()
Starts the licensing verification process.
If the target store is different than the provider, the function will return false
and the listener won't be called. You should always assume that the user is validated unless otherwise stated.
licensing.verify( listener )
Listener. Listener function for handling the status of the licensing verification. The properties sent to this listener correspond with licensing events.
local licensing = require( "licensing" ) licensing.init( "google" ) local function licensingListener( event ) if not ( event.isVerified ) then -- Failed to verify app from the Google Play store; print a message print( "Pirates!!!" ) end end licensing.verify( licensingListener )