This use case is an extension of Account Opening Use Case
This use case is built with Angular 8. To go through the use case, you don't need to know Angular. But if you are interested in leaning Angular, please follow this tutorial.
Microlending involves granting small loans to people in need. These loans are generally used by entrepreneurs with a business idea or those who need extra cash to expand. In that sense, they aren't much different from small business loans. However, microlending is actually much different. What makes these loans unique are the motivations behind it, the sizes of loans, and the people involved.
Evaluating the creditworthiness of the borrowers would reduce the risk of the loan not getting repaid. This use case would evaluate the credit score of the borrower.
-
Trusting Social - Credit Insight (Link)
- Staging API access Keys
- username: [Contact Trusting Social to get the credentials]
- password: [Contact Trusting Social to get the credentials]
- clientCode: [Contact Trusting Social to get the credentials]
- host: https://staging-api.trustingsocial.com
- basePath: /
- Staging API access Keys
Note: If previous use case is running in the IDE Terminal, Press Ctrl
+ C
to stop.
Execute following commands in Terminal window.
-
Let's change the terminal directory to root
projects
foldercd ~/project/
-
Download the code into IDE instance
git clone https://github.com/apixplatform/microlending-credit-insight.git
-
Use case code is downloaded to IDE instance to the folder
microlending-credit-insight
. Let's change the terminal directory tomicrolending-credit-insight
folder.cd microlending-credit-insight/
-
Download Angular dependancies with below commands.
npm install
-
Start the Angular application server.
npm start
To configure the use case,
-
Open
microlending-credit-insight
>api-config.json
from theProject Explorer
left pane. -
Provide your APIX credentials.
"userName": "Replace this with your APIX username", "password": "Replace this with your APIX password"
-
From the main menu, click
File
>Save
.
Now the development server is up and running with correct configurations. To open the use case website follow the below instructions.
- Copy the IDE instance URL from the browser tab. (ex:
https://ide-xxxxxx.services.apixplatform.com/
) - Open a new browser tab and paste the copied IDE url. Change the
ide
text toapp
in the URL and open. New URL would look like (ex:https://app-xxxxxx.services.apixplatform.com/
)
-
Click on
Create an Account
button fromHome
page.i. In the GitHub project go to
test-images
and downloadid.jpg
andselfie.jpg
. Provide these two images in the 1st step of application window and clickVerify
button.- HyperVerge Face Match API will get executed to validate the provided identity document and selfie.
- Match confidence level will be provided as the output.
- Click on
Go to Account Creation
button to proceed.
ii. Provide account creation inputs and click
Create Account
Button.- Bank customer will get created with the provided
Account Holder's Name
usingSmart Bank - Party
API. - New Account gets created using
Smart Bank - Account
API. - Newly created customer will be assigned to the Account as the Account Owner using
Smart Bank - Account
API.
iii. Created Account Details will be shown in the Step 3.
iv. Click
Home
button. -
Click on
Apply for a Loan
button fromHome
Pagei. Enter the name and phone number (
917025xxxxxx
) andSubmit
. Last 6 digits are arbitary. Please note down the phone number provided, before submit.- 917025976692 - Has a good credit score
- 917025111111 - Has a bad credit score
ii. OTP needs to be provided now.
- Go to Trusting Social Staging SMS Service
- Enter same phone number you entered in the previous step into the
Input Phone Number
field and Submit. - Copy the correct OTP for the request and provide it in Use case frontend and
Submit
.
iii. Credit Score percentage will be shown. If Credit Score is healthy,
You are eligible for a loan!
message will appear in the screen. If not,Unfortunately, you are not eligible for a loan.
message will appear in the screen.