Retrieves a KYC Session by its ID.
Id of the session to retrieve
A Promise that resolves to the KYC session.
If the HTTP request fails.
// Example usage:
customerVerificationService.getKycSession('session-id')
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error fetching KYC session.`);
});
Retrieves customer verification status.
A Promise that resolves to the KYC sessions.
If the HTTP request fails.
// Example usage:
customerVerificationService.getKycVerificationStatus()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error fetching customer verification status.`);
});
Creates a KYC session. This will start the KYC process for the customer. Response body will contain a session URL that can be used to redirect the customer to the Paysafe KYC application.
The KYC session request.
A Promise that resolves to the created KYC session.
If the HTTP request fails.
// Example usage:
customerVerificationService.startKycSession(request)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error starting KYC session.`);
});
Static
getRetrieves the singleton instance of the CustomerVerificationService class.
The singleton instance of the CustomerVerificationService class.
// Example usage:
const customerVerificationService = CustomerVerificationService.getInstance();
Service class for managing customer verification related operations.