iFrame Integration
Embedding the Verification iFrame
You can optionally embed the verification link returned in the response within an iFrame on your website. The iFrame will post messages to the parent window based on specific events that occur during the verification process.
iFrame Example
<iframe
src="https://fe.dcams.app/d2568a05-47a2-4ec7-b3e3-c5bd194461a7"
width="420"
height="670"
style="overflow: hidden; border: none;"
allow="camera"
allowfullscreen
<!-- Make sure to set the allow properly in case one of your verification components needs access -->
></iframe>Listening for Post Messages
To listen for events sent from the iFrame to the parent window, you can add an event listener for the message event. The VX iFrame posts updates such as PASS, FAIL, ALREADY VERIFIED, ERROR, LINK EXPIRED, BOT DETECTED, and CLOSE (when the user dismisses the experience).
Sample Implementation
Last updated