getPaddleCustomerId method
Returns the Paddle customer ID for the current user.
iOS only; returns null on Android.
Implementation
@override
Future<String?> getPaddleCustomerId() async {
if (!Platform.isIOS) {
log('[Helium] getPaddleCustomerId is only available on iOS');
return null;
}
try {
return await methodChannel.invokeMethod<String>(
getPaddleCustomerIdMethodName,
);
} catch (e) {
log('[Helium] Failed to get Paddle customer ID: $e');
return null;
}
}