Second, you need to launch synaps by providing the sessionid of the user:
synaps =findViewById<SynapsIndividualVerify>(R.id.synaps);try { synaps!!.launch(SESSION_ID)} catch (e: CameraAccessException) {// handle when user disable the camera permission ActivityCompat.requestPermissions(this,arrayOf<String>( Manifest.permission.CAMERA), SYNAPS_REQUEST_CAMERA_PERMISSION_CODE);}
synaps =findViewById<SynapsCorporateVerify>(R.id.synaps);try { synaps!!.launch(SESSION_ID)} catch (e: CameraAccessException) {// handle when user disable the camera permission ActivityCompat.requestPermissions(this,arrayOf<String>( Manifest.permission.CAMERA), SYNAPS_REQUEST_CAMERA_PERMISSION_CODE);}
To get a session_id you need to create an appon Synaps Manager. Once you selected your service type, you will have to go in your "integration" tab and copy your Api-Key.
The Api-Key MUST NOT be stored in your frontend. You have to store it on your server and never on the client side. The only thing that should be exposed to the user is the session_id.
To create a session_id, you have to call the API related to the service you chose. For instance, if you chose Identity service, go to Identity > Sessions in the documentation.
Tier is a simply way to divide your workflow into small pieces. It is very useful when you offer different features based on the verification level of your customer. More info
primary_color
color
null
N
You can set a primary color, it will create a verification flow tailored to your compliance needs and your brand.
secondary_color
color
null
N
You can set a secondary color, it will create a verification flow tailored to your compliance needs and your brand.
Customization
Custom colors
We give you the possibility to customize your workflow with your colors. You can set a primary color and a secondary color, it will create a verification flow tailored to your compliance needs and your brand.
You can set a predefined language for your user. Synaps already take advantage of browser language to display the relevant language to the end-user but if your user has set up a language option to your website, you can definitely pass it as an option.
As explained before in the documentation, tiers is a simply way to divide your workflow into small pieces. It is very useful when you offer different features based on the verification level of your customer.
To create your own tier, check out the step-by-step guide