Alloy
Last updated
Last updated
Current implementation with Alloy SDK allow to upload documents if the alloy journey is in pending documents state.
Current functionality only works with kyc and kyb journeys and it doesn't perfom the kyc/kyb process, this process stills working with the enrollment and kyc-documents endpoints. It only allows to upload documents.
Launch Alloy sdk to upload documents related to specific journey application.
The following env vars are required:
In order to download the android package needed to run the alloy SDK you will need to create a GitHub personal access token.
Check the steps to create a personal access token here. For the scope select only read:packages
Replace the placeholder values with your credentials in the following file android/gradle.properties
Follow the next steps, If you will implement directly the Alloy SDK. If you are integrating Alloy along with a Baas provider, skip to this.
Import the following where you need to launch the alloy sdk
To start alloy you need to send the journey information.
The onIntervalEvent is optional and it only works for Android platform. It is triggered directly from the Android module bridge with a especific interval and can be used to fetch the customer current kycStatus from the API.
In the case of iOS you can have your own interval and it continues function even if the alloy sdk is open.
The following hook requires you to send the customer's kyc status. It is checking if the kyc status is not longer asking documents, then it closes the Alloy SDK
Check the following screen to see an example: LinkerStudio/modules/kyc/alloy/components/templates/examples/InsertAlloySdkValues.tsx
This will require to also add the common module
Follow the How to Use steps in the kyc/common module