Inheritance
Object
PlatformInterface
ZeroSettlePlatform
Implementers
Methods
acceptSaveOffer ({required String productId , required String userId })
→ Future <Map <String , dynamic > >
acceptSaveOfferForCurrentUser ({required String productId })
→ Future <Map <String , dynamic > >
1.3.0 no-userId overload — uses the currently identified user.
bootstrap ({required String userId })
→ Future <Map <String , dynamic > >
cancelSubscription ({required String productId , required String userId , bool immediate = false })
→ Future <void >
cancelSubscriptionForCurrentUser ({required String productId , bool immediate = false })
→ Future <void >
1.3.0 no-userId overload — uses the currently identified user.
configure ({required String publishableKey , bool syncStoreKitTransactions = true , String ? appleMerchantId , bool preloadCheckout = false , int ? maxPreloadedWebViews , String ? applePaySetupBehavior })
→ Future <void >
fetchCancelFlowConfig ({String ? userId })
→ Future <Map <String , dynamic > >
fetchProducts ({String ? userId })
→ Future <Map <String , dynamic > >
fetchTransactionHistory ({required String userId })
→ Future <List <Map <String , dynamic > > >
fetchTransactionHistoryForCurrentUser ()
→ Future <List <Map <String , dynamic > > >
1.3.0 no-userId overload — uses the currently identified user.
fetchUpgradeOfferConfig ({String ? productId , required String userId })
→ Future <Map <String , dynamic > >
fetchUpgradeOfferConfigForCurrentUser ({String ? productId })
→ Future <Map <String , dynamic > >
1.3.0 no-userId overload — uses the currently identified user.
getApplePayState ()
→ Future <String >
Reads the current Apple Pay availability state once. Returned as a raw
string ("ready" / "setupRequired" / "unavailable"); the facade
converts to ApplePayAvailabilityState .
getCancelFlowConfig ()
→ Future <Map <String , dynamic > ? >
getCurrentUserId ()
→ Future <String ? >
The currently identified user ID, or null if identify() hasn't been
called.
getDetectedJurisdiction ()
→ Future <String ? >
getEntitlements ()
→ Future <List <Map <String , dynamic > > >
getIsApplePayOnly ()
→ Future <bool >
Whether the SDK is currently treating this merchant as Apple-Pay-only.
Mirrors ZeroSettle.shared.isApplePayOnly on iOS.
getIsBootstrapped ()
→ Future <bool >
Whether identify() (or the deprecated bootstrap()) has completed.
getIsConfigured ()
→ Future <bool >
getPendingCheckout ()
→ Future <bool >
getPendingClaims ()
→ Future <List <Map <String , dynamic > > >
StoreKit purchases the current user could claim from another ZeroSettle
account.
getProducts ()
→ Future <List <Map <String , dynamic > > >
getRemoteConfig ()
→ Future <Map <String , dynamic > ? >
handleUniversalLink (String url )
→ Future <bool >
hasActiveEntitlement ({required String productId })
→ Future <bool >
identify ({required String type , String ? id , String ? name , String ? email })
→ Future <Map <String , dynamic > ? >
logout ()
→ Future <void >
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openCustomerPortal ({required String userId })
→ Future <void >
pauseSubscription ({required String productId , required String userId , required int pauseOptionId })
→ Future <String ? >
pauseSubscriptionForCurrentUser ({required String productId , int ? pauseDurationDays })
→ Future <String ? >
1.3.0 no-userId overload — uses the currently identified user.
Takes pauseDurationDays per Kit 1.3.0 (replaces the old pauseOptionId).
preloadPaymentSheet ({required String productId , String ? userId })
→ Future <void >
presentApplePaySetup ()
→ Future <void >
Launches the system Wallet setup flow so the user can add a card for
Apple Pay. Mirrors ZeroSettle.shared.presentApplePaySetup() on iOS.
presentCancelFlow ({required String productId , required String userId })
→ Future <String >
presentCancelFlowForCurrentUser ({required String productId })
→ Future <String ? >
1.3.0 no-userId overload — uses the currently identified user.
presentPaymentSheet ({required String productId , String ? userId , bool dismissible = true })
→ Future <Map <String , dynamic > >
presentSaveTheSaleSheet ()
→ Future <String >
presentUpgradeOffer ({String ? productId , required String userId })
→ Future <String >
presentUpgradeOfferForCurrentUser ({String ? productId })
→ Future <String >
1.3.0 no-userId overload — uses the currently identified user.
product ({required String productId })
→ Future <Map <String , dynamic > ? >
purchase ({required String productId , String ? presentation })
→ Future <Map <String , dynamic > >
Unified purchase entry point. Routes to web checkout or StoreKit based
on jurisdiction + remote config; can be overridden per-call by
presentation.
purchaseViaStoreKit ({required String productId })
→ Future <Map <String , dynamic > >
Force a StoreKit (App Store IAP) purchase, bypassing web checkout.
recommendedAppAccountToken ()
→ Future <String >
Derive a deterministic UUID for appAccountToken from the currently
identified user ID. Returned as a string.
resetMigrateTipState ()
→ Future <void >
resolveMigrationManagerHandle ({String ? stripeCustomerId })
→ Future <String >
Returns the iOS-side handle ID for the migration manager scoped to the
currently-identified user and the optional stripeCustomerId. The
returned ID is opaque; pass it to MigrationManager.fromHandleId.
resolveOfferManagerHandle ({String ? stripeCustomerId })
→ Future <String >
Returns the iOS-side handle ID for the offer manager scoped to the
currently-identified user and the optional stripeCustomerId. The
returned ID is opaque; pass it to OfferManager.fromHandleId.
restoreEntitlements ({required String userId })
→ Future <List <Map <String , dynamic > > >
restoreEntitlementsForCurrentUser ()
→ Future <List <Map <String , dynamic > > >
1.3.0 no-userId overload — uses the currently identified user.
resumeSubscription ({required String productId , required String userId })
→ Future <void >
resumeSubscriptionForCurrentUser ({required String productId })
→ Future <void >
1.3.0 no-userId overload — uses the currently identified user.
setBaseUrlOverride (String ? url )
→ Future <void >
setCustomer ({String ? name , String ? email })
→ Future <void >
showManageSubscription ({required String userId })
→ Future <void >
submitCancelFlowResponse (Map <String , dynamic > response )
→ Future <void >
toString ()
→ String
A string representation of this object.
inherited
trackEvent ({required String eventType , required String productId , String ? screenName , Map <String , String > ? metadata })
→ Future <void >
trackMigrationConversion ({required String userId })
→ Future <void >
trackMigrationConversionForCurrentUser ()
→ Future <void >
1.3.0 no-userId overload — uses the currently identified user.
transferStoreKitOwnershipToCurrentUser ({required String productId })
→ Future <void >
warmUpPaymentSheet ({required String productId , String ? userId })
→ Future <void >