Skip to content

Commit

Permalink
Update Identity in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Jul 13, 2022
1 parent fac83bc commit a40ce43
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,29 @@ var ro = new RequestOptions { IdempotencyKey = "SOME STRING", };
await client.Evaluations.CreateAsync(evaluation: request, options: ro);
```

## Identity

With `FaluClient` you can verify your user's identity from a documentation perspective. Below is a sample of how to do verify the user's phone number against a name or id card.

```cs
FaluClient client; // omitted for brevity
var request = new IdentityVerificationCreateRequest
{
Checks = new IdentityVerificationChecks
{
Document = new IdentityVerificationChecksForDocument
{
LiveCapture = true,
}
},
};
var response = await client.IdentityVerifications.CreateAsync(request);
response.EnsureSuccess(); // might throw an exception (FaluException)
var url = response.Resource.Url; // use this URL to complete verification
var clientSecret = response.Resource.ClientSecret; // pass this to Android/iOS apps using the official SDK
```

## Messages

With `FaluClient` you can send both transactional and bulk messages to customers. You can use pre-created templates to streamline sending of your messages. Below is a sample of how to create a template then used it to send a message.
Expand Down Expand Up @@ -221,28 +244,6 @@ response.EnsureSuccess(); // might throw an exception (FaluException)

> Your outgoing account for MPESA must be configured in your [Workspace settings][workspace-settings] before you can initiate an outgoing payment to a customer.
## Identity

With `FaluClient` you can verify your user's identity from a documentation perspective. Below is a sample of how to do verify the user's phone number against a name or id card.

```cs
FaluClient client; // omitted for brevity
var search = new IdentitySearchModel
{
Phone = "+254722000000",
};
var response = await client.Identity.SearchAsync(search);
response.EnsureSuccess(); // might throw an exception (FaluException)
var result = response.Resource;
if (result != null)
{
var name = result.Name;
var idNumber = result.DocumentNumber;
// application confirms if the name and idNumber provided matches the ones in the result
}
```

## Evaluations

With `FaluClient` you can evaluate the credit worthiness of your customers via financial statements. This is particularly useful for mobile lending. Below is a sample of how to evaluate a user.
Expand Down

0 comments on commit a40ce43

Please sign in to comment.