masamune_purchase library
Masamune plugin package that contains the base implementation for implementing InAppPurchase and an adapter for mocking.
To use, import package:masamune_purchase/masamune_purchase.dart
.
Classes
- AndroidConsumablePurchaseFunctionsAction
- Define consumable billing settings for Android.
- AndroidNonConsumablePurchaseFunctionsAction
- Define the settings for non-disposable billing for Android.
- AndroidSubscriptionPurchaseFunctionsAction
- Define subscription settings for Android.
- IOSConsumablePurchaseFunctionsAction
- Define consumable billing settings for IOS.
- IOSNonConsumablePurchaseFunctionsAction
- Define the settings for non-consumable billing for IOS.
- IOSSubscriptionPurchaseFunctionsAction
- Define subscription settings for IOS.
- Purchase
- Controller for in app purchase.
- PurchaseFunctionsAction
- InAppPurchase actions used in Functions.
- PurchaseFunctionsActionResponse
- PurchaseMasamuneAdapter
- PurchaseProduct
- Define chargeable items.
- PurchaseProductValue
- Actual data for PurchaseProduct.
- RuntimePurchaseMasamuneAdapter
-
Initialize
MasamuneAdapter
to handle InAppPurchase in the mockup. - StoreConsumablePurchaseProduct
- Define billing items that are PurchaseProductType.consumable.
- StoreNonConsumablePurchaseProduct
- Define billing items that are PurchaseProductType.nonConsumable.
- StoreSubscriptionPurchaseProduct
- Define billing items that are PurchaseProductType.subscription.
Enums
- PurchaseProductType
- Defines the type of item being charged for.
Constants
- kConsumableValueKey → const String
- The key of the internal wallet when a PurchaseProductType.consumable chargeable item is purchased.
- kProductIdKey → const String
- A key to identify the product ID.
- kSubscriptionExpiredKey → const String
- A key used to determine if a PurchaseProductType.subscription chargeable item has been purchased and is within the expiration date.