The Dojah platform has a smooth widget that enables your users to authorize access to their accounts. This widget works effortlessly across various browsers and devices of all sizes.
Reference : flutter_dojah_kyc Pub Dev package Example Application: https://github.com/dojah-inc/Flutter-SDKπ Get Started with Flutter SDK - Dojah KYC Widget
Parameter | Type | Description |
---|---|---|
type | string | Widget Type: Values are βcustomβ, βverificationβ, βidentificationβ, βverificationβ, βlivenessβ |
app_id | string | Application Id, Get it from your dojah application dashboard here |
p_key | string | Public Key, Get it from your dojah application dashboard here |
reference_id | string | Reference ID, It can be passed to keep track of the verification steps (Started, Ongoing, Successful). NB: reference_id character length must be greater than 10 |
widget_id | string | Widget ID, Get it from your Easy Onboard application dashboard here |
user_data | object | Automatically update the user data page, and thus skip the page |
gov_data | object | Automatically update the government data page, and thus skip the page |
metadata | object | Your applicationβs metadata to be passed back to you via webhook, onSuccess, or onError |
onSuccess | function | This is called when your user has successfully completed enrollment with their preferred institution. The sample response data below is passed to the widget |
onError | function | This is called when your user was unable to successfully complete enrollment. |
onClose | function | This is called when the widget is closed. |
π Request Camera Permission
Kindly declare and request camera permission in the main activity, at your application level - MainActivity/main.dart before launching the SDK
The Sample response data after successful verificationπ Webhook Notifications
You can receive the same data below (also passed to onSuccess and onError) via a webhook call. Register your url for webhook calls here and ensurekyc.widget
is theservice
you are subscribed to. In Config object Kindly set webhook object value to true (Boolean) Example : webhook : true
π How to Exclude or Skip the User data Page
Kindly pass userData inside the DojahKYC constructor class. Example :
π How to retrieve the Selfie Photo
Thereβs a response object that is sent to the client via the widget launcher on success or failure
selfieUrl and idUrl under selfie and id in the success response objects, which holds the final selfie capture and id capture respectively.
π How to Fix Android File Upload Crash