masamune_purchase_mobile library

Masamune plugin library to implement in-app purchases for GooglePlay and AppStore.

To use, import package:masamune_purchase_mobile/masamune_purchase_mobile.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.
ConsumablePurchaseDelegate
Delegate to perform each process on the consumable purchase.
IOSConsumablePurchaseFunctionsAction
Define consumable billing settings for IOS.
IOSNonConsumablePurchaseFunctionsAction
Define the settings for non-consumable billing for IOS.
IOSSubscriptionPurchaseFunctionsAction
Define subscription settings for IOS.
MobilePurchaseMasamuneAdapter
Initial setup for handling InAppPurchase on mobile MasamuneAdapter.
NonConsumablePurchaseDelegate
Delegate to perform each process on the non-consumable purchase. 非消費型の購入上の各処理を行うためのデリゲート。
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.
SubscriptionPurchaseDelegate
Delegate to perform each process on the subscription purchase.

Enums

PurchaseProductType
Defines the type of item being charged for.
PurchaseSubscriptionPeriod
The period of a subscription.

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.