initializeSdk method
Initialize the SDK with the publishable key and client secret.
Implementation
@override
Future<void> initializeSdk({
required String publishableKey,
}) async {
try {
await methodChannel.invokeMethod('initializeSdk', {
'publishableKey': publishableKey,
});
debugPrint('SDK initialized successfully');
} catch (e) {
debugPrint('Failed to initialize SDK: $e');
rethrow;
}
}