Skip to main content

zuraffa_purchase 7.6.1 copy "zuraffa_purchase: ^7.6.1" to clipboard
zuraffa_purchase: ^7.6.1 copied to clipboard

Purchase support for the Zuraffa ecosystem: a typed in-app purchase port behind a service, with the StoreKit / Play Billing adapters shipped as federated siblings.

example/README.md

zuraffa_purchase #

In-app purchase plugin for Zuraffa/Flutter — query products, launch the native purchase flow, and verify/restore purchases across the App Store and Play Store.

Buy a product #

import 'package:flutter/material.dart';
import 'package:zuraffa_purchase/zuraffa_purchase.dart';

Future<void> buy() async {
  final products = await ZuraffaPurchase.queryProducts({'premium'});
  final purchase = await ZuraffaPurchase.buyNonConsumable(
    product: products.first,
  );
  debugPrint('purchased: ${purchase.productId}');
}

Restore purchases #

import 'package:zuraffa_purchase/zuraffa_purchase.dart';

final restored = await ZuraffaPurchase.restorePurchases();
0
likes
160
points
2.55k
downloads

Documentation

API reference

Publisher

verified publisherzuraffa.com

Weekly Downloads

Purchase support for the Zuraffa ecosystem: a typed in-app purchase port behind a service, with the StoreKit / Play Billing adapters shipped as federated siblings.

Homepage
Repository (GitHub)
View/report issues

Topics

#purchase #clean-architecture #zuraffa

License

MIT (license)

Dependencies

zuraffa, zuraffa_subscriptions

More

Packages that depend on zuraffa_purchase