The Cashfree VRS Node SDK offers a convenient solution to access Cashfree VRS APIs from a server-side JavaScript applications.
Cashfree's Verification Suite API Documentation - https://docs.cashfree.com/reference/verification-api-overview
Learn and understand verification workflows at Cashfree Payments here
Try out our interactive guides at Cashfree Dev Studio !
npm i cashfree-verification
import { Cashfree } from "cashfree-verification";
Cashfree.XClientId = "<x-client-id>";
Cashfree.XClientSecret = "<x-client-secret>";
Cashfree.XEnvironment = Cashfree.Environment.SANDBOX;
Generate your API keys (x-client-id , x-client-secret) from Cashfree Merchant Dashboard
VoterId Verification
var request = {
"verification_id": 'uniqueVerificationId',
"epic_number": 'UAI4574761',
"name": 'John Doe',
}
Cashfree.VrsVoterIdVerification(request).then((response) => {
console.log('Verification Response:', response.data);
})
.catch((error) => {
console.error('Error in verification request:', error);
});
Liveliness Check
const image = fs.createReadStream(<path-to-image>);
Cashfree.VrsLivelinessCheck("uniqueVerificationId",image).then((response) => {
console.log('Verification Response:', response.data);
})
.catch((error) => {
console.error('Error in verification request:', error);
});
Apache Licensed. See LICENSE.md for more details