creditchek-react-sdk
v1.0.1
Published
This is a react package to run assessments on creditchek
Downloads
23
Readme
CreditChek React SDK
Introduction
The CreditChek Secured SDK Engine is a lightweight product that gives businesses access to a pool of CreditChek API services and a decision engine.
The CreditChek Secured SDK Engine uses the same technology as our main application to allow your customers to carry out assessments. The customer assessments help you determine the decisions to make when they apply to your product. With our Secured SDK, you are able to customize the functionalities according to how you see fit for your business. The assessments carried out on this secured SDK includes:
- Identity verification
- Credit Bereau History search
- Income Assessments
- Automated immediate credit decision outcome
Installation
Install the SDK
$ npm install creditchek-react-sdk
# or
$ yarn add creditchek-react-sdk
Usage
Add CreditChek SDK to your projects using the following simple guide:
import creditchekSDK from 'creditchek-react-sdk';
export default function App() {
const handleClick = () => {
creditchekSDK.open({
businessId: 'YOUR_BUSINESS_ID',
appId: "YOUR_APP_ID",
publicKey: "YOUR_APP_PUBLIC_KEY",
incomeForm: "XXXX", // short/long
module: ["xxxx"],
onComplete: (result) => {
console.log("Result:", result);
},
});
};
return (
<div className="App">
<h1>CreditChek SDK Test</h1>
<button onClick={handleClick}>Launch SDK</button>
</div>
);
}Parameters
| Parameter | Always Required ? | Description | | ------------------- | ----------------- | ---------------------| | businessId | True | This is your Business ID and can be found in the top right corner after logging in to the CreditChek B2B portal | | appId | True | This is the ID of the app you want to connect for your SDK operations. It can be found on the app section on the B2B dashboard | | publicKey | True | This is the your API public key. It can be found on the app section of the dashboard. | | incomeForm | False | This determines whether users will need to fill additional information for income assessments. Default is "short", other option is "long". | | module | True | This is an array of strings that determine the layout of the SDK by module selection. At least one must be included. Options - "identity", "income", "credit", "recova" |
Support
For additional assistance using this library, please create an issue on the Github repo or contact the team via email.
