Browser API per Verifica Checkify Pass. URL CDN:
https://checkify.me/sdk/v1/checkify.min.js
<script src="https://checkify.me/sdk/v1/checkify.min.js"></script>
Dopo il caricamento,
window.Checkify.version
segnala la versione SDK (attualmente 1.0.1).
Il SDK monta automaticamente gli elementi con questi attributi al caricamento della pagina:
<div
data-checkify-pass="YOUR_PASS_ID"
data-checkify-request="human"
data-checkify-text="Verify with Checkify"
data-checkify-return-url="https://yoursite.com/done"
></div>
Deprecato:
data-checkify-launcher
funziona ancora ma registra un avviso sulla console. Utilizza invece il tipo di richiesta Pass +.
| Metodo | Descrizione |
|---|---|
data-checkify-pass | Your Checkify Pass public ID (required) |
data-checkify-request | Request type: human, age_over_18, age_over_21, age_over_25, or age_over_N |
data-checkify-text | Button label text |
data-checkify-return-url | Optional URL to return to after app handoff |
data-checkify-launcher | Deprecated launcher ID — use data-checkify-pass instead |
Imposta le impostazioni predefinite globali prima di montare i widget.
Checkify.configure({
baseUrl: 'https://checkify.me',
completeUrl: '/checkify/complete'
});
Renders è un pulsante di verifica, scrive un token su un input nascosto e disabilita l'invio fino alla verifica.
Checkify.bindForm('#my-form', {
passId: 'YOUR_PASS_ID',
requestType: 'human',
buttonTarget: '#checkify-wrap',
submitButton: '#submit',
hiddenInput: '#checkify_token',
disableSubmitUntilVerified: true
});
Porta a pagina intera o contenitore che blocca il contenuto fino al completamento della verifica.
Checkify.createHumanGate({
passId: 'YOUR_PASS_ID',
requestType: 'human',
container: '#gate-root',
title: 'Verify to continue'
});
Quando gli utenti completano la verifica nel Checkify app, potrebbero tornare al tuo sito con
checkify_request_id
nella stringa di query. Il SDK chiama
Checkify.checkReturnedVerification()
automaticamente al caricamento.
Start verification programmatically without auto-mounting HTML. Returns a promise that resolves when the user completes or cancels.
const result = await Checkify.verify({
passId: 'YOUR_PASS_ID',
requestType: 'human',
container: document.getElementById('checkify-root')
});
console.log(result.requestId); // send to your server as request_id
window.addEventListener('checkify:verified', (e) => {
console.log('Verified', e.detail);
});
window.addEventListener('checkify:error', (e) => {
console.error('Checkify error', e.detail);
});
Most integrations should verify on form submit with POST /v1/qr/results/verify. For custom frontends without the embed, you may poll status while the user completes verification in the app.
Legacy poll token from older embeds:Request ID + status token from the start response:| Metodo | Descrizione |
|---|---|
Checkify.mount(root?) | Widget Mount Pass sotto l'elemento root opzionale |
Checkify.bindForm(...) | Assistente integrazione modulo |
Checkify.createHumanGate(...) | Porta di verifica umana UI |
Checkify.verify(options) | Flusso di verifica programmatica |
Checkify.checkReturnedVerification() | Gestisci l'URL di ritorno dopo il trasferimento dell'app |