KYC Verifier - Quick Start
Start a verification flow using the in-memory provider (dev/test). Production identity verification requires you to integrate a real KYC/AML provider.
Installation
dotnet add package PrimusSaaS.Banking.KYC
Register and Use
// Configure
builder.Services.AddPrimusKycVerifier(options =>
{
options.Provider = KycProvider.InMemory; // dev/test only
options.EnableWatchlistScreening = false; // requires external integration
});
// Use
public class OnboardingController : ControllerBase
{
private readonly IKycVerifier _kyc;
public OnboardingController(IKycVerifier kyc) => _kyc = kyc;
[HttpPost("verify")]
public async Task<IActionResult> VerifyCustomer([FromBody] CustomerIdentity customer)
{
var session = await _kyc.StartVerificationAsync(customer);
return Ok(session);
}
}