zuraffa_purchase 7.6.1
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.
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();