initializeSDK method
Implementation
Future<void> initializeSDK(InitializeSdkProps props) async {
try {
if (props.kwikpassConfig == null && props.checkoutConfig == null) {
throw {
'errorCode': 400,
'error': 'Initialization Failed',
'message': 'SDK initialization requires at least one of kwikpassConfig or checkoutConfig.',
'result': false,
'timestamp': DateTime.now().toIso8601String(),
};
}
this.props = props;
Logger();
await SecureStorage.init();
await ApiService.initializeSdk(props);
} catch (err) {
rethrow;
}
}