Web SDK Setup
Integrations guide
This page sets out step-by-step instructions for setting up the Web SDK.
WebView manual
To integrate the Web SDK via WebView, follow these steps:
- Make a Create SDK session request to create an 8-digit, alphanumerical
validationCode
for the Web SDK session, e.g.A1B2C3D4
:
- Pass the
validationCode
in the URL to the embedded browser:
Example URL:
https://sandbox.v.fourthline.com/v1/?code=A1B2C3D4
Success page
To redirect the client to your Success page when they successfully complete the workflow, add a redirect
parameter to the URL:
Example Success page URL:
https://sandbox.v.fourthline.com/v1/?code=A1B2C3D4&redirect=https://yoursuccesspage.com
Failure page
To redirect the client to your Failure page if they don't successfully complete the workflow, add a redirectFailure
parameter to the URL:
Example Failure page URL:
https://sandbox.v.fourthline.com/v1/?code=A1B2C3D4&redirectFailure=https://yourfailurepage.com
Example with Success and Failure page URLs:
https://sandbox.v.fourthline.com/v1/?code=A1B2C3D4&redirect=https://yoursuccesspage.com&redirectFailure=https://yourfailurepage.com
iOS video playback quality
To ensure video playback quality on iOS and maintain a high conversion rate for document and selfie videos, when you launch the Web SDK in WebView, in your iOS app, set the following parameter in the app to true
:
Parameter | Description |
---|---|
allowsInlineMediaPlayback | A Boolean value that indicates whether HTML5 videos play inline or use the native full-screen controller. Set to true . |
To integrate your solutions, see the Integration Guides section.
Updated 6 months ago