Seamless In-App Purchases for Flutter

IAPHUB provides a powerful SDK that simplifies in-app purchase implementation in your Flutter applications. Our solution handles both App Store and Google Play Store purchases through a single, consistent API.

iOS & AndroidDart SupportServer ValidationOpen Source on GitHub

Skip the complexity of managing multiple store implementations and receipt validation servers. Our SDK provides a unified solution that works seamlessly across platforms.

Cross-Platform Support

Single SDK that works seamlessly on both iOS and Android platforms, with consistent API across both stores.

Native Performance

Built with native modules for optimal performance while maintaining the simplicity of Flutter development.

Automatic Receipt Validation

Server-side validation for both App Store and Google Play receipts, ensuring secure and reliable transactions.

Subscription Management

Complete toolkit for handling subscriptions, including trial periods, upgrades, downgrades, and grace periods.

Offline Support

Robust offline purchase handling and queue management to ensure no transaction is ever lost.

Developer Friendly

Comprehensive documentation, Dart type support, and dedicated technical support to ensure smooth implementation.

Quick Installation

Install the IAPHUB Flutter SDK via pub.dev with a single command:

Terminal
$flutter pub add iaphub_flutter

Start Coding in Minutes

Implement in-app purchases in your Flutter app with just a few simple steps. No complex native code required—just clean Dart async/await patterns.

1. Initialize the SDK

Start by initializing IAPHUB with your app credentials. This should be done when your app launches.

Code Editor
await Iaphub.start(
  appId: "YOUR_APP_ID",
  apiKey: "YOUR_API_KEY"
);

2. Get Available Products

Retrieve the list of in-app products configured in your IAPHUB dashboard.

Code Editor
var products = await Iaphub.getProductsForSale();

for (var product in products) {
  print('${product.title}: ${product.price}');
}

3. Purchase a Product

Process a purchase with built-in error handling. IAPHUB handles all the complexity of StoreKit and Play Billing.

Code Editor
try {
  var transaction = await Iaphub.buy("pack_10_coins");
  print("Purchase successful!");
} catch (err) {
  print("Purchase failed: $err");
}

Why Not Just Use in_app_purchase?

While in_app_purchase is Flutter's official package that provides basic communication with StoreKit and Google Play Billing, it leaves many critical challenges unaddressed that you'll need to solve yourself.

No Server-Side Infrastructure

You'll need to build and maintain your own server for receipt validation, subscription management, and webhook processing.

Manual Receipt Validation

You must implement complex receipt validation logic for both App Store and Play Store, handling different receipt formats and edge cases.

Limited Subscription Management

No built-in handling of subscription states, renewal tracking, and grace periods.

No Analytics Dashboard

You'll need to build your own analytics system to track purchases, revenue, and subscription metrics.

Complex Error Recovery

You must implement your own logic for handling failed purchases, interrupted transactions, and receipt refresh failures.

No Fraud Prevention

You'll need to build your own system to detect and prevent common types of in-app purchase fraud.

IAPHUB provides all these features out of the box, along with a production-ready server infrastructure and comprehensive dashboard. Instead of spending months building these systems yourself, you can integrate our complete solution in just a few minutes.

Frequently Asked Questions

Install the IAPHUB Flutter SDK via pub.dev, initialize it with your API credentials, and use the simple Dart API to implement consumables, subscriptions, and non-consumable products in your Flutter iOS and Android apps.
Yes! The IAPHUB Flutter SDK fully supports both iOS and Android platforms, providing a unified Dart API for in-app purchases that works seamlessly across both stores.
While in_app_purchase provides basic store communication, IAPHUB adds server-side receipt validation, subscription management, analytics dashboard, fraud prevention, and automated testing tools - saving you months of development time.
The SDK supports all IAP types: consumables (coins, credits), non-consumables (premium features), auto-renewable subscriptions, and non-renewing subscriptions on both iOS and Android.
Yes, IAPHUB offers a generous free tier perfect for indie Flutter developers, startups, and apps testing in-app purchase integration before launch.
Yes, IAPHUB provides server-side receipt validation for both App Store and Google Play Store, ensuring all purchases are verified and secure without any additional setup required.
Absolutely! The SDK includes complete subscription lifecycle management, including trial periods, upgrades, downgrades, grace periods, renewal tracking, and subscription status monitoring.