The Verifast connection page can be integrated into your application in 2 ways. To see the documentation on how to create a connection Click Here

Dedicated New Tab

This is used when you want to send your verification customer to a new page to have them complete all verification and redirect user back to your application

15271527

Iframe

Used to keep applicants on your page and complete all verification steps.

661661

Code Snippet

<iframe allow="camera" src="https://sandbox.trustrentify.com/v1/bankForm/2yxNzWMtnC8dnCgxlcHjZksHgdVav5cfeIamFGBTvqeOuJJoXrud3OcL3VcF?isIframe=1" title="rentmoola" id="iFrame" width="700px" height="800px">
</iframe>
<script>
        window.top.addEventListener('message', e => {
        
            let iFrame = document.getElementById('iFrame');
            e.data.origin = e.origin
            iFrame.contentWindow.postMessage(e.data,"https://sandbox.trustrentify.com")
        })
        window.addEventListener('message', e => {
        
            e.data.origin = e.origin
            if(e.origin === "https://sandbox.trustrentify.com"){
                console.log(e);
            }
        })
    </script>

Notifications

After Each Section of your verification app is complete you will be able to access the below javascript notifications.

{ "detail": "bank-verification-start" }

With values:
'bank-verification-start'
'bank-verification-complete'
'identity-verification-start'
'identity-verification-complete'
'employment-verification-start'
'employment-verification-complete'
'complete'