initializeSdk method

  1. @override
Future<void> initializeSdk({
  1. required String publishableKey,
})
override

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;
  }
}