Signature
Required Class: Signature Class
Generating a Signature
Smile ID requires you to transmit a unique signature and timestamp with every job you run. While running jobs using any of our libraries automatically calculates the signature, there might be situations where you need to execute a job using our REST API or generate signatures manually. For these instances, you can utilise the sample code below to calculate a signature:
Response
The response will be an associative array:
Confirming an Incoming Signature
To confirm the authenticity of the response received from your callback as genuinely originating from Smile ID, you can validate the returned signature and timestamp. The sample code provided below can be used for confirmation:
Response
The response will be a boolean value:
Here, true
is represented by 1
and false
by an empty string ""
.
Last updated