Integration guide

Welcome to the free Digital ID sandbox! The sandbox is an isolated test environment, intended to easily create test cases using dummy data where it's not feasible to test your integration with live data.

The sandbox environment will allow you to:

  • Mimic our production services in test
  • Use test data bypassing using the Yoti app to share attributes.
  • Double checking data formats and behaviours.
  • Testing edge cases

The main difference between our Yoti production services and sandbox is the Yoti share token is completed using a production QR code whereas sandbox generates the token for you.

Before you start
We recommend familiarising yourself with the Digital ID integration to understand the Yoti attribute sharing process. You will also need some sandbox api keys.

Supported Languages

Just like the normal Yoti Client, the Yoti Sandbox Client SDK is available in seven languages:

Creating a Sandbox Request

Installation

Once you have generated your keys, you can continue with installing the Sandbox SDK into your backend.

Just like our production integration, the Yoti Sandbox Client SDK is available in seven languages and installing is easy through popular package managers.

Javascript
Java
PHP
Python
C#
Go
Ruby
Java v2
Copy

The sandbox client is packaged separately to the production Yoti client enabling it to be used as a development dependency.

Initialising the Sandbox Client

You will need your Sandbox Client SDK ID and PEM file created from the Yoti Hub to initialise the sandbox client.

Please do not open the pem file as this might corrupt the key and you will need to create a new sandbox key.

Javascript
Java
PHP
Python
C#
Go
Ruby
Copy

Generating a Token

To create a sandbox request, you must specify how you want your response to be provided. Below is an example of a simple sandbox request.

Javascript
Java
PHP
Python
C#
Go
Ruby
Copy

Familiarise yourself with the Attributes explained. For advanced attribute generation please see below.

Reading the Request

Once you have generated a sandbox token, this can be used in the same way as the standard Web Integration.

Javascript
Java
PHP
Python
C#
Go
Ruby
Java v2
Copy
Good to know
Guidance or a refresher on the full Yoti client, please see our web integration section.

This concludes the basic Sandbox Integration for the Digital ID.

Advanced Test cases

Now that you're familiar with creating a simple sandbox request it's important to know that there are some additional features in the SDK which can be utilised to create powerful tests. In this section we'll cover:

  • Source and verifiers
  • Address
  • Age verification

Source and verifiers

If you're familiar with a Yoti app share, you'll recognise that an attribute contains additional data, such as the Source of the Attribute and the Verifier. These are known as Anchors. Please see below for an example of attaching Anchors to your sandbox attributes.

Javascript
Java v2
PHP
Python
C#
Go
Ruby
Java
Copy

Address

Yoti use a set format depending on the Address region. In order to create tests for the structured postal address, we recommended referring to the Yoti formats below.

An example of building a structured postal address is shown below:

Javascript
Java
PHP
Python
C#
Go
Ruby
Copy

Age Verification

A common use case with the Yoti app is using the Age Over attribute. Testing this with the Sandbox involves creating an Age Verification sandbox attribute.

Javascript
Java
PHP
Python
C#
Go
Ruby
Copy

Go Live

Once you have tested our sandbox please return to our integration guide.

If you have any other questions please do not hesitate to contact clientsupport@yoti.com.

Once we have answered your question we may contact you again to discuss Yoti products and services. If you’d prefer us not to do this, please let us know when you e-mail.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard