Documentation Index
Fetch the complete documentation index at: https://docs.legitimuz.com/llms.txt
Use this file to discover all available pages before exploring further.
Responsible for mounting the SDK and should be called after the configuration.Example:<script src="https://cdn.legitimuz.com/js/sdk/antifraude.js"></script>
<script type="text/javascript">
const sdkInstance = LegitimuzAntiFraude({
/* ...options */
});
// Mount SDK
sdkInstance.mount();
</script>
changeActionId
function(params: object): void
Responsible for changing the id
of the elements that trigger the actions.
Name of the actionClick here to see the available fields. New id of the element that triggers the actionExample: my-custom-id
Example:<script src="https://cdn.legitimuz.com/js/sdk/antifraude.js"></script>
<script type="text/javascript">
const sdkInstance = LegitimuzAntiFraude({
/* ...options */
});
// Mount SDK
sdkInstance.mount();
sdkInstance.changeActionId({
actionName: "send-analisys",
actionId: "my-custom-id",
});
</script>
setAction
function(action: string): void
Change the action executed when sending the data.
signin: login action
signup: registration action
deposit: deposit action
withdraw: withdrawal action
check: must be send every 30 minutes
Example:<script src="https://cdn.legitimuz.com/js/sdk/antifraude.js"></script>
<script type="text/javascript">
const sdkInstance = LegitimuzAntiFraude({
/* ...options */,
action: 'check'
});
// Mount SDK
sdkInstance.mount();
sdkInstance.setAction('signin');
sdkInstance.sendAnalisys({ cpf: '12345678910' });
</script>
sendAnalisys
function(params: object): void
Send data for analysis.
User’s CPFExample: 123.456.789-10
User’s emailExample: mail@example.com
Example:<script src="https://cdn.legitimuz.com/js/sdk/antifraude.js"></script>
<script type="text/javascript">
const sdkInstance = LegitimuzAntiFraude({
/* ...options */,
action: 'check'
});
// Mount SDK
sdkInstance.mount();
sdkInstance.sendAnalisys({ cpf: '12345678910' });
</script>