iFrame: ¿cómo funciona?
Con el widget de ZapSign, puedes integrar firmas electrónicas directamente en tu sitio web, ¡ofreciendo una experiencia fluida y segura!
Agregar el Widget a tu Sitio o App
<!DOCTYPE html>
<html>
<head>
<title>Test Widget ZapSign</title>
</head>
<body>
<!--Nota: Es importante incluir el atributo 'allow' en tu iframe si el método de autenticación solicita una foto del firmante -->
<iframe src="https://app.zapsign.co/verificar/SIGNER-TOKEN" width="100%" height="800px" allow="camera"></iframe>
<script>
window.onmessage = function(e){
if(e.data === 'zs-doc-loaded'){
alert('Doc loaded in iframe')
}
if(e.data === 'zs-doc-signed'){
alert('Doc signed by signer')
}
if(e.data === 'zs-signed-file-ready'){
alert('Signed file (final pdf) ready to download')
}
};
</script>
</body>
</html>Usando window.onmessage en los Widgets



Atributo allow

allow attribute in an iframe to enable camera access.Last updated
Was this helpful?