licensing.verify()

Type Function
Library licensing.*
Return value none
Revision 2017.3060
Keywords licensing, verify
See also licensing.init()

Overview

Starts the licensing verification process.

Gotchas

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.

Syntax

licensing.verify( listener )
listener (required)

Listener. Listener function for handling the status of the licensing verification. The properties sent to this listener correspond with licensing events.

Examples

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 )