Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM authored Mar 10, 2020
1 parent 7c79873 commit 5c95d4a
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Cordova plugin exposing the [Veriff SDK](https://www.veriff.com/) - Smart and sc

## Requeriments
- Android 5.0 or newer
- iOS version 11.0 or newer
- iOS version 11.0 or newer
## Installation

Within your Cordova project:
Expand All @@ -32,7 +32,9 @@ In your ionic app:

1. Declare a global var

`declare var VERIFF;`
```javascript
declare var VERIFF;
```

2. Create a session with your Veriff API KEY.

Expand All @@ -41,12 +43,14 @@ In your ionic app:

*sessionToken* should be unique for each call. Check /sessions endpoint in th[e Veriff API documentation](https://developers.veriff.com/#sessions) to learn how to generate one.

let sessionToken = "your Veriff session token"
this.platform.ready().then(() => {
VERIFF.start(sessionToken).then(code => {
// The promise returns the verification result of Veriff SDK
});
});
```javascript
let sessionToken = "your Veriff session token"
this.platform.ready().then(() => {
VERIFF.start(sessionToken).then(code => {
// The promise returns the VeriffSDK verification result
});
});
```

## Changelog

Expand Down

0 comments on commit 5c95d4a

Please sign in to comment.