autheo_sdk 1.0.2
autheo_sdk: ^1.0.2 copied to clipboard
A Flutter SDK for KYC verification
Autheo SDK #
A Flutter SDK for KYC verification with ID Card and Selfie.
Installation #
Add to your pubspec.yaml:
dependencies:
autheo_sdk: ^1.0.2
Usage #
import 'package:autheo_sdk/autheo_sdk.dart';
// Initialize the SDK and Launch Verification
final result = await AutheoSDK.startVerification(context,
apiKey: 'api-key',
email: 'candidate-email',
phone: '0200000000',
firstName: 'John',
lastName: 'Doe',
businessId: 'your-business-id',
verificationType: 'KYC Verification',
isAddressCheck: true, // false means no address verification for candidate
isAmlCheck: true, // false means no blacklist check for candidate
isCreditCheck: false // false means credit history check for candidate not required
);
if (result.isSuccess) {
print('Verification successful: ${result.message}');
} else {
print('Verification failed: ${result.message}');
}
Parameters #
apiKey: Your Autheo API keybusinessId: Unique identifier for the account
Result #
The SDK returns a VerificationResult object with:
isSuccess: Boolean indicating success/failuremessage: Human-readable messagedata: Results of verificationerror: Error details if applicable