Navegador API para Checkify Pass verificación. URL de CDN:
https://checkify.me/sdk/v1/checkify.min.js
<script src="https://checkify.me/sdk/v1/checkify.min.js"></script>
Después de la carga,
window.Checkify.version
informa la versión SDK (actualmente 1.0.1).
El SDK monta automáticamente elementos con estos atributos al cargar la página:
<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>
Obsoleto:
data-checkify-launcher
todavía funciona pero registra un Advertencia de consola. Utilice el tipo de solicitud Pasar + en su lugar.
| Método | Descripción |
|---|---|
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 |
Establezca valores predeterminados globales antes de montar widgets.
Checkify.configure({
baseUrl: 'https://checkify.me',
completeUrl: '/checkify/complete'
});
Renders un botón de verificación, escribe un token en una entrada oculta y deshabilita el envío hasta que se verifique.
Checkify.bindForm('#my-form', {
passId: 'YOUR_PASS_ID',
requestType: 'human',
buttonTarget: '#checkify-wrap',
submitButton: '#submit',
hiddenInput: '#checkify_token',
disableSubmitUntilVerified: true
});
Puerta de página completa o contenedor que bloquea el contenido hasta que se completa la verificación.
Checkify.createHumanGate({
passId: 'YOUR_PASS_ID',
requestType: 'human',
container: '#gate-root',
title: 'Verify to continue'
});
Cuando los usuarios completan la verificación en el Checkify aplicación, pueden regresar a su sitio con
checkify_request_id
en la cadena de consulta. El SDK llama a
Checkify.checkReturnedVerification()
automáticamente al cargar.
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:| Método | Descripción |
|---|---|
Checkify.mount(root?) | Montar widgets de paso bajo elemento raíz opcional |
Checkify.bindForm(...) | Ayudante de integración de formularios |
Checkify.createHumanGate(...) | Puerta de verificación humana UI |
Checkify.verify(options) | Flujo de verificación programática |
Checkify.checkReturnedVerification() | Manejar la URL de retorno después de la transferencia de la aplicación |