This is a reference manual and configuration guide for the new ID Verification Web client. It describes how to initiate a transaction, how to customize your settings and branding, and how to display ID Verification to your users.
Information about changes to features and improvements documented in each release is available in our Revision history.
- Initiating a ID Verification transaction
- Configuring settings in the Customer Portal
- Displaying ID Verification
- After the user journey
- Supported environments
Call the RESTful API POST endpoint /initiate with a JSON object containing the properties described below to create a transaction for each user. You will receive a JSON object in the response containing a timestamp, Jumio transaction reference (scan reference), and a URL which you can use to present ID Verification to your user.
HTTP Request Method: POST
REST URL (US): https://netverify.com/api/v4/initiate
REST URL (EU): https://lon.netverify.com/api/v4/initiate
REST URL (SGP): https://core-sgp.jumio.com/api/v4/initiate
ID Verification API calls are protected using HTTP Basic Authentication. Your Basic Auth credentials are constructed using your API token as the user-id and your API secret as the password. You can view and manage your API token and secret in the Customer Portal under Settings > API credentials.
The TLS Protocol is required to securely transmit your data, and we strongly recommend using the latest version. For information on cipher suites supported by Jumio during the TLS handshake see Supported cipher suites.
The following fields are required in the header section of your request:
Accept: application/json
Content-Type: application/json
Content-Length:
(see RFC-7230)
Authorization:
(see RFC 7617)
User-Agent: YourCompany YourApp/v1.0
ℹ️ Jumio requires the User-Agent value to reflect your business or entity name for API troubleshooting. |
---|
The body of your initiate API request allows you to
- provide your own internal tracking information for the user and transaction.
- specify what user information is captured and by which method.
- indicate where the user should be directed after the user journey.
- select the language to be displayed.
- preset options to enhance the user journey.
ℹ️ Values set in your API request will override the corresponding settings configured in the Customer Portal. |
---|
Required items appear in bold type.
Name | Type | Max. length | Description |
---|---|---|---|
customerInternalReference1 | string | 100 | Your internal reference for the transaction. |
userReference1 | string | 100 | Your internal reference for the user. |
reportingCriteria | string | 100 | Your reporting criteria for the transaction. |
successUrl2 | string | 2047 | Redirects to this URL after a successful transaction. Overrides Success URL in the Customer Portal. |
errorUrl2 | string | 255 | Redirects to this URL after an unsuccessful transaction. Overrides Error URL in the Customer Portal. |
callbackUrl2 | string | 255 | Sends verification result to this URL upon completion. Overrides Callback URL in the Customer Portal. |
workflowId | integer | 3 | Applies this acquisition workflow to the transaction. Overrides Capture method in the Customer Portal. See supported workflowId values. |
presets1 | JSON | - | Preset options to enhance the user journey. See supported preset values. |
locale | string | 5 | Renders content in the specified language. Overrides Default locale in the Customer Portal. See supported locale values. |
tokenLifetimeInMinutes | number | Max. value: 86400 | Time in minutes until the authorization token expires. (minimum: 5, maximum: 86400) Overrides Authorization token lifetime in the Customer Portal. |
1 Values must not contain Personally Identifiable Information (PII) or other sensitive data such as email addresses.
2 See URL constraints for Callback, Error, and Success URLs.
Acquisition workflows allow you to set a combination of verification and capture method options.
workflowId . |
---|
Value | Verification type | Capture method |
---|---|---|
100 | ID only | camera + upload |
101 | ID only | camera only |
102 | ID only | upload only |
200 | ID + Identity | camera + upload |
201 | ID + Identity | camera only |
202 | ID + Identity | upload only |
It is possible to specify presets for ID Verification, for Identity Verification, for both together, or for neither. For each preset you use, all values must be passed together as a JSON array (see Sample request) for the request to be valid.
Preset the country and document type to bypass the selection screen.
Required items appear in bold type.
Name | Type | Max. length | Description |
---|---|---|---|
index | integer | 1 | must be set to 1 |
country | string | 3 | Possible values: • ISO 3166-1 alpha-3 country code • XKX (Kosovo) |
type | string | 15 | Possible values: • PASSPORT • DRIVING_LICENSE • ID_CARD |
Identity Verification in ID Verification allows you to make sure the person submitting the ID for verification is the same person in the ID photo. This comprises two steps: the Face Match step and the optional Liveness Check step. The Face Match step allows us to compare the face in the ID photo with the face of the person submitting the transaction for similarity, and the additional Liveness Check ensures that person is present during the transaction.
Identity Verification can be enabled with the Face Match step only or in conjunction with a Liveness Check.
ID Verification's new 3D face liveness detection technology creates a three-dimensional map of your user's face, providing unprecedented accuracy for the Liveness Check, and creates an enrollment transaction for the use of the Authentication feature.
ℹ️ To use 3D Liveness, Identity Verification and 3D Liveness must be enabled for your account by Jumio Support. |
---|
3D Liveness requires that the user has access to a camera. In order to ensure that 3D Liveness is always used for the Liveness Check, your users must be restricted to using their camera either for the entire transaction, or for the Identity Verification step. This can be accomplished by:
- changing your Capture method in the Settings area of the Customer Portal to Webcam only for the entire transaction.
- including workflowId 201 to specify "ID + Identity, camera only" in the API request when you initate a ID Verification transaction.
- asking Jumio Support to enable Force Camera for Identity to allow upload of the ID image, but force the user to use a camera for the Identity Verification step.
capture method | when | result |
---|---|---|
upload only | always | user asked to upload selfie |
camera + upload | user uploads ID image | user asked to upload selfie |
camera + upload | camera not available | user asked to upload selfie |
camera + upload | browser not supported | user asked to upload selfie |
camera only | camera not available | error 9820 |
camera only | browser not supported | error 9820 |
Hyphenated combination of ISO 639-1:2002 alpha-2 language code plus ISO 3166-1 alpha-2 country (where applicable).
Value | Locale |
---|---|
ar | Arabic |
bg | Bulgarian |
cs | Czech |
da | Danish |
de | German |
el | Greek |
en | American English (default) |
en-GB | British English |
es | Spanish |
es-MX | Mexican Spanish |
et | Estonian |
fi | Finnish |
fr | French |
he | Hebrew |
hr | Croatian |
hu | Hungarian |
hy | Armenian |
id | Indonesian |
it | Italian |
ja | Japanese |
ka | Georgian |
km | Khmer |
ko | Korean |
lt | Lithuanian |
ms | Malay |
nl | Dutch |
no | Norwegian |
pl | Polish |
pt | Portuguese |
pt-BR | Brazilian Portuguese |
ro | Romanian |
ru | Russian |
sk | Slovak |
sv | Swedish |
th | Thai |
tr | Turkish |
vi | Vietnamese |
zh-CN | Simplified Chinese |
zh-HK | Traditional Chinese |
Unsuccessful requests will return the relevant HTTP status code and information about the cause of the error.
Successful requests will return HTTP status code 200 OK
along with a JSON object containing the information described below.
Required items appear in bold type.
Name | Type | Max. length | Description |
---|---|---|---|
timestamp | String | 24 | Timestamp (UTC) of the response. Format: YYYY-MM-DDThh:mm:ss.SSSZ |
redirectUrl | String | URL used to load the ID Verification client. | |
transactionReference | String | 36 | Jumio reference number for the transaction. |
POST https://netverify.com/api/v4/initiate/ HTTP/1.1
Accept: application/json
Content-Type: application/json
Content-Length: 1234
User-Agent: Example Corp SampleApp/1.0.1
Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
{
"customerInternalReference" : "transaction_1234",
"userReference" : "user_1234",
"successUrl" : "https://www.yourcompany.com/success",
"errorUrl" : "https://www.yourcompany.com/error",
"callbackUrl" : "https://www.yourcompany.com/callback",
"reportingCriteria" : "myReport1234",
"workflowId" : 200,
"presets" :
[
{
"index" : 1,
"country" : "AUT",
"type" : "PASSPORT"
},{
"index" : 2,
"phrase" : "MY CUSTOM PHRASE"
}
],
"locale" : "en-GB"
}
{
"timestamp": "2018-07-03T08:23:12.494Z",
"transactionReference": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"redirectUrl": "https://yourcompany.netverify.com/web/v4/app?locale=en-GB&authorizationToken=xxx"
}
In the Settings screen of the Customer Portal you can customize your settings and brand your ID Verification page.
Save changes using your Customer Portal password to activate them.
ℹ️ Values set in your API request will override the corresponding settings configured in the Customer Portal. |
---|
Define a Callback URL to receive verification results and extracted user data from Jumio when a transaction is completed. For more information, see our Callback documentation.
Define a Success URL to direct the user after images are accepted for processing. If no Success URL is specified in the Customer Portal or the initiate API request, the Jumio default success page will be displayed, including any custom images you have specified.
Define an Error URL to direct the user when the verification process ends with an error or a failure after 3 submission attempts. If no Error URL is specified in the Customer Portal or the initiate API request, the Jumio default error page will be displayed, including any custom images you have specified.
- HTTPS using the TLS Protocol (most recent version recommended)
- Valid URL using ASCII characters or IDNA Punycode
- IP addresses, ports, certain query parameters and fragment identifiers are not allowed.
- Personally identifiable information (PII) is not allowed in any form.
Jumio appends the following parameters to your Success or Error URL to redirect your user at the conclusion of the user journey. These cannot be used as part of your Success or Error URL:
Name | Description |
---|---|
transactionStatus | • SUCCESS for successful submissions. • ERROR for errors and failure after 3 attempts. |
customerInternalReference1 | Your internal reference for the transaction. |
transactionReference | Jumio reference number for the transaction. |
errorCode | Displayed when transactionStatus is ERROR . |
1 Values must not contain Personally Identifiable Information (PII) or other sensitive data such as email addresses.
Specify how your user can submit their ID or Identity image for verification.
Choose from:
- Webcam and image upload
- Webcam only
- Image upload only
Select this checkbox to bypass the introductory screen in the ID Verification Web client.
Specify the duration of time for which your redirectUrl
will remain valid. Enter the value in minutes (minimum 5, maximum 86400). The default value is 30 minutes.
You can optionally define a domain name prefix (https://yourcompany.netverify.com
) for the URL of your ID Verification page.
- Allowed characters are letters
a-z
, numbers0-9
,-
- Must not start or end with
-
- Max. 63 characters
Select a language from the dropdown list to set your display language for ID Verification. If no language is selected, ID Verification will be displayed in English (US).
Choose from:
- Arabic
- Armenian
- Bulgarian
- Chinese (China)
- Chinese (Hong Kong)
- Croatian
- Czech
- Danish
- Dutch
- English
- English (United Kingdom)
- Estonian
- Finnish
- French
- German
- Georgian
- Greek
- Hebrew
- Hungarian
- Indonesian
- Italian
- Japanese
- Khmer
- Korean
- Lithuanian
- Malay
- Norwegian
- Polish
- Portuguese
- Portuguese (Brazil)
- Romanian
- Russian
- Slovak
- Spanish
- Spanish (Mexico)
- Swedish
- Thai
- Turkish
- Vietnamese
Specify primary and secondary colors for each locale to give ID Verification your own look and feel.
Any locale which is not configured will first default to the root language (e.g. EN_GB to EN), then to your default configuration, and finally to the Jumio default.
You can also reset all colors to the Jumio default.
Add a Header image for each locale to brand your ID Verification page.
Add a Success image and Error image for each locale to be displayed on the Jumio default success and error pages when you do not specify your own Success URL and Error URL.
Any locale which is not configured will first default to the root language (e.g. EN_GB to EN), then to your default configuration, and finally to the Jumio default.
All images must be formatted as JPG or PNG and must not exceed 5 MB.
The redirectUrl returned in the response to your initate API call, which loads your customized ID Verification page, can be used in several ways:
- within an iFrame on your web page
- as a link on your web page
- as a link shared securely with a user
If you want to embed ID Verification on a web page, place the iFrame tag in your HTML code where you want the client to appear. Use the redirectUrl
as value of the src
attribute.
allow="camera" attribute must be included to enable the camera for image capture in supported browsers. |
---|
allow="camera" attribute must be added to every iFrame. |
---|
We recommend adhering to the responsive breaking points in the table below.
Size class | Width | Height |
---|---|---|
Large | ≥ 900 px | ≥ 710 px |
Medium | 640 px | 660 px |
Small | 560 px | 600 px |
X-Small | ≤ 480 px | ≤ 535 px |
Note: When specifying the width and height of your iFrame you may prefer to use percentage values so that the iFrame behaves responsively on your page.
For a better user experience when creating a three-dimensional map of your user's face, you must allow full screen mode. This will address the positioning and distance between the capture interface and the camera.
allow="camera;fullscreen" allowfullscreen attributes must be included to enable the camera for image capture in supported browsers in full screen mode. |
---|
<iframe src="https://yourcompany.netverify.com/web/v4/app?locale=en-GB&authorizationToken=xxx" width="930" height="750" allow="camera"></iframe>
<iframe src="https://yourcompany.netverify.com/web/v4/app?locale=en-GB&authorizationToken=xxx" width="70%" height="80%" allow="camera"></iframe>
<iframe src="https://yourcompany.netverify.com/web/v4/app?locale=en-GB&authorizationToken=xxx" width="70%" height="80%" allow="camera;fullscreen" allowfullscreen></iframe>
When the ID Verification client is embedded in an iFrame1, it will communicate with the containing page using the JavaScript window.postMessage()
method to send events containing pre-defined data. This allows the containing page to react to events as they occur (e.g., by directing to a new page once the success
event is received). Events include data that allows the containing page to identify which ID Verification transaction triggered the event. Events are generated in a stateless way, so that each event contains general contextual information about the transaction (e.g., transaction reference, authorization token, etc.) in addition to data about the specific event that occurred.
Using JavaScript, the containing page can receive the notification and consume the data it contains by listening for the message
event on the global window
object and reacting to it as needed. The data passed by the ID Verification Web client in this notification is represented as JSON in the data
string property of the listener method's event
argument. Parsing this JSON string results in an object with the properties described below.
All data is encoded with UTF-8.
1 This functionality is not available for instances of ID Verification running in a standalone window or tab.
Required items appear in bold type.
Property | Type | Description |
---|---|---|
authorizationToken | string | Authorization token, valid for a specified duration. |
transactionReference | string | Jumio reference number for the transaction. |
customerInternalReference1 | string | Your internal reference for the transaction. |
eventType | integer | Type of event that has occurred. Possible values: • 510 (application state-change) |
dateTime | string | UTC timestamp of the event in the browser. Format: YYYY-MM-DDThh:mm:ss.SSSZ |
payload | JSON object | Information specific to the event generated. (see event.data.payload object) |
1 Values must not contain Personally Identifiable Information (PII) or other sensitive data such as email addresses.
Required items appear in bold type.
Name | Type | Description |
---|---|---|
value | string | Possible values: • loaded (ID Verification loaded in the user's browser.)• success (Images were accepted for verification.)• error (Verification could not be completed due to an error.) |
metainfo | JSON object | Additional meta-information for error events. (see metainfo object) |
Required items appear in bold type.
Property | Type | Description |
---|---|---|
code | integer | see errorCode values |
function receiveMessage(event) {
var data = window.JSON.parse(event.data);
console.log('Netverify Web was loaded in an iframe.');
console.log('auth token:', data.authorizationToken);
console.log('transaction reference:', data.transactionReference);
console.log('customer internal reference:', data.customerInternalReference);
console.log('event type:', data.eventType);
console.log('date-time:', data.dateTime);
console.log('event value:', data.payload.value);
console.log('event metainfo:', data.payload.metainfo);
}
window.addEventListener("message", receiveMessage, false);
ID Verification Web can be embedded within a WebView in your native mobile application.
See Supported Environments > Native WebView for information about support on Android and iOS.
The following sections explain the steps needed to embed ID Verification Web in a native Android WebView.
Please also refer to the sample code beneath.
Make sure that the required permissions are granted.
android.permission.INTERNET
- for remote resources accessandroid.permission.CAMERA
- for camera captureandroid.permission.READ_EXTERNAL_STORAGE
- for upload functionality
The following settings are required for the native WebView for Android.
- Enable
javaScriptEnabled
- tells the WebView to enable JavaScript execution - Allow
allowFileAccess
- enables file access within WebView - Allow
allowFileAccessFromFileUrls
- sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from other file scheme URLs - Allow
allowUniversalAccessFromFileUrls
- sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from any origin - Allow
allowContentAccess
- enables content URL access within WebView - Allow
javaScriptCanOpenWindowsAutomatically
- tells JavaScript to open windows automatically - Enable
domStorageEnabled
- sets whether the DOM storage API is enabled - Do not allow
mediaPlaybackRequiresUserGesture
- sets whether the WebView requires a user gesture to play media
To allow Jumio to identify the user runtime environment you will need to interact with the webview window object by embedding a required script. This script sets flag __NVW_WEBVIEW__
to true
.
You can handle messages from the ID Verification Web Client using the same method as described in Optional iFrame Logging.
You will need to register a postMessage handler and put the relevant code sections in the PostMessageHandler
class as in the example mentioned below.
AndroidManifest.xml example
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jumio.nvw4">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
...
</manifest>
build.gradle example
dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0-beta01'
implementation 'androidx.webkit:webkit:1.2.0'
...
}
WebViewFragment.kt example
class WebViewFragment : Fragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState);
webview.settings.javaScriptEnabled = true;
webview.settings.allowFileAccessFromFileURLs = true;
webview.settings.allowFileAccess = true;
webview.settings.allowContentAccess = true;
webview.settings.allowUniversalAccessFromFileURLs = true;
webview.settings.javaScriptCanOpenWindowsAutomatically = true;
webview.settings.mediaPlaybackRequiresUserGesture = false;
webview.settings.domStorageEnabled = true;
/**
* Registering handler for postMessage communication (iFrame logging equivalent - optional)
*/
webview.addJavascriptInterface(new PostMessageHandler(), "__NVW_WEBVIEW_HANDLER__");
/**
* Embedding necessary script execution fragment, before NVW4 initialize (important)
*/
webview.webViewClient = object : WebViewClient() {
override fun onPageStarted(view: WebView?, url: String?, favicon: Bitmap?) {
webview.loadUrl("javascript:(function() { window['__NVW_WEBVIEW__']=true})")
}
}
/**
* Handling permissions request
*/
webview.webChromeClient = object : WebChromeClient() {
// Grant permissions for cam
@TargetApi(Build.VERSION_CODES.M)
override fun onPermissionRequest(request: PermissionRequest) {
activity?.runOnUiThread {
if ("android.webkit.resource.VIDEO_CAPTURE" == request.resources[0]) {
if (ContextCompat.checkSelfPermission(
activity!!,
Manifest.permission.CAMERA
) == PackageManager.PERMISSION_GRANTED
) {
Log.d(
TAG,
String.format(
"PERMISSION REQUEST %s GRANTED",
request.origin.toString()
)
)
request.grant(request.resources)
} else {
ActivityCompat.requestPermissions(
activity!!,
arrayOf(
Manifest.permission.CAMERA,
Manifest.permission.READ_EXTERNAL_STORAGE
),
PERMISSION_REQUEST_CODE
)
}
}
}
}
// For Lollipop 5.0+ Devices
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
override fun onShowFileChooser(
mWebView: WebView?,
filePathCallback: ValueCallback<Array<Uri>>?,
fileChooserParams: FileChooserParams
)Boolean {
if (uploadMessage != null) {
uploadMessage!!.onReceiveValue(null)
uploadMessage = null
}
try {
uploadMessage = filePathCallback
val intent = fileChooserParams.createIntent()
intent.type = "image/*"
try {
startActivityForResult(intent, REQUEST_SELECT_FILE)
} catch (e: ActivityNotFoundException) {
uploadMessage = null
Toast.makeText(
activity?.applicationContext,
"Cannot Open File Chooser",
Toast.LENGTH_LONG
).show()
return false
}
return true
} catch (e: ActivityNotFoundException) {
uploadMessage = null
Toast.makeText(
activity?.applicationContext,
"Cannot Open File Chooser",
Toast.LENGTH_LONG
).show()
return false
}
}
protected fun openFileChooser(uploadMsg: ValueCallback<Uri?>) {
mUploadMessage = uploadMsg
val i = Intent(Intent.ACTION_GET_CONTENT)
i.addCategory(Intent.CATEGORY_OPENABLE)
i.type = "image/*"
startActivityForResult(
Intent.createChooser(i, "File Chooser"),
FILECHOOSER_RESULTCODE
)
}
override fun onConsoleMessage(consoleMessage: ConsoleMessage): Boolean {
Log.d(TAG, consoleMessage.message())
return true
}
override fun getDefaultVideoPoster(): Bitmap {
return Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888)
}
webview.loadUrl("<<NVW4 SCAN REF LINK>>")
}
/**
* PostMessage handler for iframe logging equivalent (optional)
*/
class PostMessageHandler {
@JavascriptInterface
public boolean postMessage(String json, String transferList) {
/*
* See iFrame logging:
* https://github.com/Jumio/implementation-guides/blob/master/netverify/netverify-web-v4.md#optional-iframe-logging
*/
return true;
}
}
}
Sample App
Check out our Sample App for the Native Android WebView
Jumio supports two types of webview for iOS, you can choose either of these:
- Safari WebView
Pros | Cons |
---|---|
Access to the camera during ID and Identity | No optional postMessage communication |
Fewer integration steps | Fewer options for troubleshooting |
- Native iOS WebView
Pros | Cons |
---|---|
Optional postMessage communication | Image upload only (no access to the camera) |
Better options for troubleshooting | More integration steps |
The following sections explain the steps needed to embed ID Verification Web in a Safari View Controller.
Please also refer to the sample code beneath.
Make sure that camera permissions are granted.
import AVFoundation
import SafariServices
import UIKit
class ViewController: UIViewController {
@IBAction func loadButton(_ sender: Any) {
checkCameraPermission()
let url: String = "https://www.jumio.com/"
showSafariVC(inputText)
}
// present SFSafariViewController
private func showSafariVC(_ stringURL: String) {
guard let URL = URL(string: stringURL) else {
return
}
let safariVC = SFSafariViewController(url: URL)
present(safariVC, animated: true)
}
func safariViewControllerDidFinish(_ safariVC: SFSafariViewController) {
safariVC.dismiss(animated: true, completion: nil)
}
// ask for camera permissions
func checkCameraPermission() {
AVCaptureDevice.requestAccess(for: .video) { (granted) in
if !granted {
print("Camera permission denied")
}
}
}
}
Check out our Sample App for the iOS Safari WebView
The following sections explain the steps needed to embed ID Verification Web in a native iOS WebView.
Please also refer to the sample code beneath.
No specific permissions are needed as we cannot access the camera due to native WebView limitations for iOS.
To allow Jumio to identify the user runtime environment you will need to interact with the webview window object by embedding a required script. This script sets flag __NVW_WEBVIEW__
to true
.
You can handle messages from the ID Verification Web Client using the same method as described in Optional iFrame Logging.
Please register a postMessage handler and put the relevant code sections in the userContentController
function as mentioned below.
class ViewController: UIViewController {
@IBOutlet weak var webView: WKWebView!
override func viewDidLoad() {
super.viewDidLoad()
webView.navigationDelegate = self;
/**
* Registering handler for postMessage communication (iFrame logging equivalent - optional)
*/
webView.configuration.userContentController.add(self, name: "__NVW_WEBVIEW_HANDLER__")
webView.load( URLRequest("<<NVW4 SCAN REF LINK>>"));
}
}
extension ViewController: WKNavigationDelegate {
/**
* Embedding script at very beginning, before NVW4 initialize (important)
*/
func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!) {
/**
* Necesssary integration step - embedding script
*/
self.webView?.evaluteJavaScript("(function() { window['__NVW_WEBVIEW__'] = true })()") { _, error in
if let error = error {
print("ERROR while evalutaing javascript \(error)") // error handling whenever executing script fails
}
print("executed injected javascript")
};
}
}
extension ViewController: WKScriptMessageHandler {
/**
* PostMessage handler for iframe logging equivalent (optional)
*/
func userContentController(_ userController: WKUserContentController, didReceive message: WKScriptMessage) {
if message.name == "__NVW_WEBVIEW_HANDLER__", let messageBody = message.body as? String {
/*
* See iFrame logging:
* https://github.com/Jumio/implementation-guides/blob/master/netverify/netverify-web-v4.md#optional-iframe-logging
*/
}
}
}
Check out our Sample App for the Native iOS WebView
At the end of the user journey, the user is directed to your Success URL if the images they submitted were accepted for processing. If no Success URL has been defined, the Jumio default success page will be displayed, including any custom success image you have specified in the Customer Portal.
If acceptable images are not provided after three attempts (see Reject reasons), the user is directed to your Error URL. If no Error URL has been defined, the Jumio default error page will be displayed, including any custom error image you have specified in the Customer Portal.
To display relevant information on your success or error page, you can use the following parameters which we append when redirecting to your successUrl
or errorUrl
as HTTP GET
query string parameters1. It is also possible to set successUrl
and errorUrl
to the same address, by using the query parameter transactionStatus
.
Required items appear in bold type.
Name | Description |
---|---|
transactionStatus | Possible values: • SUCCESS for successful submissions. • ERROR for errors and failure after 3 attempts. |
customerInternalReference2 | Your internal reference for the transaction. |
transactionReference | Jumio reference number for the transaction. |
errorCode | Displayed when transactionStatus is ERROR .Possible values: • 9100 (Error occurred on our server.)• 9200 (Authorization token missing, invalid, or expired.)• 9210 (Session expired after the user journey started.)• 9300 (Error occurred transmitting image to our server.)• 9400 (Error occurred during verification step.)• 9800 (User has no network connection.)• 9801 (Unexpected error occurred in the client.)• 9810 (Problem while communicating with our server.)• 9820 (File upload not enabled and camera unavailable.)• 9821 (The 3D liveness face capture process failed after 3 attempts.)• 9822 (Browser does not support camera.)• 9835 (No acceptable submission in 3 attempts.) |
1 Because HTTP GET
parameters can be manipulated on the client side, they may be used for display purposes only.
2 Values must not contain Personally Identifiable Information (PII) or other sensitive data such as email addresses.
https://www.yourcompany.com/success/?transactionStatus=SUCCESS&customerInternalReference=YOUR_REF&transactionReference=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
https://www.yourcompany.com/error/?transactionStatus=ERROR&customerInternalReference=YOUR_REF&transactionReference=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&errorCode=9820
Jumio offers guaranteed support for ID Verification on the following browsers and the latest major version of each operating system.
Browser | Major version | Operating system | Supports image upload |
Supports camera capture |
Supports 3D Liveness |
---|---|---|---|---|---|
Google Chrome | current + 1 previous |
Windows + Mac | X | X | X |
Mozilla Firefox | current + 1 previous |
Windows + Mac | X | X | X |
Apple Safari | current | Mac | X | X | X |
Microsoft Internet Explorer | current | Windows | X | ||
Microsoft Edge | current | Windows | X | X | X |
Browser name | Major browser version | Operating system | Supports image upload |
Supports camera capture |
Supports 3D Liveness |
---|---|---|---|---|---|
Google Chrome | current | Android | X | X | X |
Samsung Internet | current | Android | X | X | X |
Apple Safari | current | iOS | X | X | X1 |
1Fullscreen functionality during capture only supported for iPads. iPhone process works, but fullscreen is limited and capture may be less accurate.
Operating system | Major version | Supports image upload |
Supports camera capture |
Supports 3D Liveness |
---|---|---|---|---|
Native Android WebView | current + 1 previous |
X | X | X |
Native iOS WebView1 | current + 1 previous |
X | ||
iOS Safari WebView | current + 1 previous |
X | X | X |
1If you are using a native WebView for iOS you will need to enable image upload to allow the end user to finish the user journey.
© Jumio Corporation, 395 Page Mill Road, Suite 150 Palo Alto, CA 94306