setAllowWebCheckoutWithoutUserId method
Allow Web Checkout paywalls to show even when no custom user ID has been
set via overrideUserId. iOS only; no-op on Android.
Implementation
@override
Future<void> setAllowWebCheckoutWithoutUserId(bool allow) async {
if (!Platform.isIOS) {
log('[Helium] setAllowWebCheckoutWithoutUserId is only available on iOS');
return;
}
try {
await methodChannel.invokeMethod<void>(
setAllowWebCheckoutWithoutUserIdMethodName,
allow,
);
} catch (e) {
log('[Helium] Failed to set allowWebCheckoutWithoutUserId: $e');
}
}