API Reference
Methods
initiateTokenVerification
Initiates the token verification process.
Parameters:
token
(String
): Required token for verification.onClose
(Function(VerificationData?)
): Callback executed with the result of the verification when the modal is closed.
Returns:
- A webview modal.
Example:
metric.initiateTokenVerification(
token: 'your_token',
onClose: (result) {
return result;
},
);
checkTokenStatus
Checks the status of a unused token.
Parameters:
token
(String
): Required token for verification.
Returns:
- A
Future<String>
containing the status of the token.
Example:
metric.checkTokenStatus(token: 'your_token');
checkUsedTokenStatus
Checks the status of a used token.
Parameters:
token
(String
): Required token for verification.
Returns:
- A
Future<String>
containing the status of the used token.
Example:
metric.checkUsedTokenStatus(token: 'your_token');