Options
See how to further customize the SDK
The host is the address of the Legitimuz API.
Example: https://api.legitimuz.com
The token is your integration token. You can generate an integration token on the
integrations page under the installation
tab in the Legitimuz Dashboard.
The lang
option sets the language that will be used in the OCR + Facematch validation flow.
The enableRedirect
option is a boolean that defines whether, after the OCR + Facematch validation flow, the user will be redirected to the link registered in the Legitimuz Dashboard.
The autoOpenValidation
option is a boolean that defines whether the popup
for OCR + Facematch validation will automatically open after entering a value in the cpf input.
A opção balanceValue é o valor do saldo do usuário.
A opção withdrawValue é o valor do saque do usuário.
The success callback is triggered when success
occurs at any stage of the OCR + Facematch validation flow. A string with the stage where success occurred is passed as a parameter.
Examples:
The error callback is triggered when an error
occurs at any stage of the OCR + Facematch validation flow. A string
with the stage where the error occurred is passed as a parameter.
Examples: