verifyToken abstract method

bool verifyToken(
  1. String installId,
  2. String featureId,
  3. String token
)

Verify the validity of a token for a specific feature and a specific installation.

This method executes locally. token must be of valid format as check in checkTokenValidFormat, invalid format will throw exception.

installId is the installation identifier returned by createInstallId. featureId is the feature identifier as defined in premiumpay.site. token is a token brought from premiumpay.site or returned by syncRequest.

Returns true if token is valid for the featureId and the installId associated and false if it's invalid for them.

Implementation

bool verifyToken(String installId, String featureId, String token);