lotse_purchases 0.1.0
lotse_purchases: ^0.1.0 copied to clipboard
In-app purchases and subscriptions for Flutter apps on a Lotse backend: products from the console, purchases checked with the store, entitlements.
0.1.0 #
First version.
LotsePurchases.init()afterLotse.init, thenLotsePurchases.instance.products(): the products of the Lotse console for this app, with price and title from the store. Google subscriptions per base plan; an offer the user may take (a free trial) is preferred.buy(product): the store dialog, the check by Lotse, and only then the purchase is finished in the store. ResultsLotsePurchaseSuccess(withprovisionalwhen Lotse could not be reached),LotsePurchaseCancelled,LotsePurchasePending,LotsePurchaseFailed.hasEntitlement('pro')synchronous from the cache,entitlementsstream,current,refresh().restore()without a store dialog (StoreKit 2Transaction.currentEntitlements, GooglequeryPurchasesAsync); a silent check of the store account at start, at most once a day.- Open reports survive restarts and are sent again; a fresh purchase counts for 24 hours on the store's word until Lotse confirms it.
- The customer's UUID goes to the store with every purchase: Google
obfuscatedAccountId, AppleappAccountToken. managementUrlfor the store's subscription page.