Skip to main content

lotse_purchases 0.1.0 copy "lotse_purchases: ^0.1.0" to clipboard
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() after Lotse.init, then LotsePurchases.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. Results LotsePurchaseSuccess (with provisional when Lotse could not be reached), LotsePurchaseCancelled, LotsePurchasePending, LotsePurchaseFailed.
  • hasEntitlement('pro') synchronous from the cache, entitlements stream, current, refresh().
  • restore() without a store dialog (StoreKit 2 Transaction.currentEntitlements, Google queryPurchasesAsync); 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, Apple appAccountToken.
  • managementUrl for the store's subscription page.
0
likes
150
points
71
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

In-app purchases and subscriptions for Flutter apps on a Lotse backend: products from the console, purchases checked with the store, entitlements.

Homepage
Repository (GitHub)
View/report issues

Topics

#in-app-purchase #subscriptions #billing

License

MIT (license)

Dependencies

flutter, flutter_secure_storage, in_app_purchase, in_app_purchase_android, in_app_purchase_storekit, lotse, package_info_plus

More

Packages that depend on lotse_purchases