1.0.11 • Published 2 years ago

verification-package v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Good Tenant Popup Verificaion Library

The Good Tenant Popup Verificaion library provides convenient access to the Good Tenants Verification API from applications written in JavaScript/TypeScript.

Documentation

See the Good Tenant Docs for Documentation.

Requirements

Node 12 or higher.

Installation

Install the package with:

npm install verification-package
# or
yarn add verification-package

Usage

The package needs to be configured with your account's secret key, which is available in the Good Tenants Dashboard. Require it with the key's value:

Usage with TypeScript

Import Verfication as a default import (not * as verification-package, unlike the DefinitelyTyped version) and instantiate the verification using Verification.setup() with the latest API version.

import Verification from "verification-package";

function initVerification() {
  Verification.setup({
    first_name: "john",
    last_name: "doe",
    email: "johndoe@mail.com",
    purpose: "residential" or "commercial"
    key: "pk_test_....",
    onClose: () => console.log("close"),
    callback: () => console.log("success"),
  });
}

initVerification();

Support

New features and bug fixes are released on the latest major version of the verification-package package.

More Information

Development

Run all tests:

$ yarn install
$ yarn test

If you do not have yarn installed, you can get it with npm install --global yarn.

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago