FlutterCrosspay class

Constructors

FlutterCrosspay({required String publicKey, required CrosspayEnvironment environment, String baseUrl = "https://api.crosspay.dev/tenant", String? customerEmail})
Create a new instance of FlutterCrosspay.

Properties

appStoreManagementUrl → String
no setter
dio → Dio
final
hashCode → int
The hash code for this object.
no setterinherited
playStoreManagementUrl → String
no setter
publicKey → String
final
purchaseEvents → Stream<PurchaseEvent>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

activeProduct() → Future<List<SubscriptionStoreProduct>>
Get the active SubscriptionStoreProduct
dispose() → void
getActiveEntitlements() → Future<List<CrosspayStorableEntitlement>>
Get the active CrosspayStorableEntitlement
identify(String customerEmail) → Future<void>
listEntitlements() → Future<List<CrosspayEntitlement>>
logout() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
purchase(CrosspayEntitlement product, {CrosspayProduct? proratedProduct, ProrationMode? prorationMode, required ExternalStore externalStore, required String redirectUrl, required String failureRedirectUrl, ReplacementMode replacementMode = ReplacementMode.withTimeProration}) → Future<void>
queryProducts(ExternalStore externalStore) → Future<List<SubscriptionStoreProduct>>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited