Webview
Last updated
Last updated
When it comes to identity verification with Verisync in your mobile applications, there are two ways to go about it:
Using the Verisync library built for your tech stack of choice - You can integrate Verisync directly into your Android or iOS app using our mobile SDK. For mobile frameworks like Ionic or React Native, please find the libraries
Using a WebView - You can use the synchronizer URL and embed it in a WebView on your mobile application. We'll be covering this option in this guide.
Code snippets
For the purposes of this guide, we'll include sample code for mobile apps built using Flutter, React Native, native Android, and iOS, but the flow described works for all the mobile app development stacks
There are different reasons to consider using the hosted checkout in a WebView over integrating directly with the mobile SDK. Regardless of which method you choose, the verification are still being processed by the same underlying APIs. The only difference is the verification experience you'll be offering to your users. Some of the pros of using a WebView are:
By using our hosted checkout, the entire payment experience is controlled by Verisync. This means you don't have to build a checkout UI in your mobile application for identity verification, hence less code is required to integrate it.
Parameter name | Type | Required | Description |
---|---|---|---|
If the url config is correct, then load the Webview widget. See the sample code below:
If you have webhooks implemented, a sync.success or sync.processing
event will be sent to your webhook URL, and it's recommended you use this to deliver value to the user in your backend.
flow_id
string
true
The id of the flow created of the request user info
client_id
string
true
The client ID you received from Verisync it's on your dashboard integration page
redirect_url
string
true
The URL where your users will be sent after authorization.
email
string
false
The user email address
metadata
object
false
Stringified JSON object of custom data.