Download the PHP package shaggyrec/sumsubphp without Composer
On this page you can find all versions of the php package shaggyrec/sumsubphp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sumsubphp
SumSub PHP client
PHP API client for sumsub.com
Installation
Usage
Methods
Getting access token
Create an Applicant
An applicant is an entity representing one physical person. It may have several ID documents attached, like an ID card or a passport. Many additional photos of different documents can be attached to the same applicant.
Changing required document set (level)
This method updates required documents list according to the level provided. In case you need to add one more step to the check, for example, only id document and selfie have been requested at first, and after the check has been completed you need to get the proof of address. So you have to add one more step to the current list of required documents.
Adding an ID document
A method gets a multipart form: ID doc JSON metadata and, optionally, a document photo. If the ID doc with this type already exists, its data will be merged. Existing data will be overwritten if they also present in the new object. However, a new image will be added nonetheless. If document metadata are not known yet, just send type and a country. E.g. "PASSPORT" and "GBR". These two fields are mandatory.
Getting applicant data
During the verification we also extract data from the applicant's id docs. To get the full structured view of an applicant you should perform the following request.
Or by your user id
Changing provided info (fixedInfo)
If you'd like to alter data that you've provided us to cross-validate it with documents you can issue a PATCH request instead of creating a new applicant, which is highly discouraged. This method patches the fields in the fixedInfo key of the applicant.
Getting applicant status
It is recommended that you use this method if you are using WebSDK or MobileSDK since SDKs will show rejection reasons and comments within their screens. But if you still need to fetch rejection comments, it's possible using method below.
Getting applicant documents status
It is recommended that you use this method if you information about documents
Requesting an applicant check
You can programmatically ask us to re-check an applicant in cases where you or your user believe that our system made a mistake, or if you're sending us documents via API and would like for us to perform a check. To do it you should explicitly move an applicant to the pending state by performing the following request.
`
Getting document images
If you are interested in receiving images that were part of the final verification, you should use this method.
About imageId https://developers.sumsub.com/api-reference/#getting-applicant-status-api
Adding an applicant to blocklist
If for some reason you need to add an applicant to the blocklist, you can use this endpoint. It is necessary to add the reason for adding the applicant to the blocklist.
Resetting a single verification step
For some cases it's required for user to pass already passed verification step - method below will allow making step inactive for SDK to run it again and collect new data.
AVAILABLE STEPS TO RESET
Resetting an applicant
In very rare cases, it is required to change the status of the applicant to init. For example, if a user has contacted support with a request to re-pass verification from scratch with new documents.
Set risk level for the applicant
This method allows you to set a risk level for your applicant by your own criteria.
Marking image as inactive (deleted)
That method allows you to mark uploaded image as deleted so during initialization SDK screen would ask for a new one. It can be used in cases you'd like for your users to re-upload document that was previously approved via SDK.
About imageId https://developers.sumsub.com/api-reference/#getting-applicant-status-api
Adding custom applicant tags
Use that method to assign custom tags to applicant profiles. Create new tags in the Global settings section of the dashboard
Handling webhooks
Or you could provide Psr\Http\Message\RequestInterface to WebhookHandler::handleWithVerification function
To run integration tests localy you must set up your secret key and api token
In tests/integration/phpunit.xml.dist
Run tests
All versions of sumsubphp with dependencies
guzzlehttp/psr7 Version ^2.4
psr/http-client Version ^1.0
guzzlehttp/guzzle Version ^7.5