Integrate in-app purchases into your Flutter app
// Your app's code
import 'package:adapty_flutter/adapty_flutter.dart';
Adapty().activate();
// Make a purchase, Adapty handles the rest
try {
final profile = await Adapty().makePurchase(product: product);
// successful purchase
} on AdaptyError catch (adaptyError) {
// handle the error
} catch (error) {
// handle another errors
}
No need to build a backend for Flutter in-app purchases
Adapty’s SDK handles everything typically done on the backend: receipt validation, subscription status, renewals, trials, and refunds.
Set it up once and get fully working Flutter in-app purchases on both iOS and Android.
Why choose Adapty SDK?
Track subscription status across platforms
Validate receipts on the backend
Handle all kinds of subscription states
Scale on a enterprise-grade core
'PUBLIC_SDK_KEY',
{
customerUserId: 'YOUR_USER_ID',
}
);
Easy integration for Flutter
Use 5 SDK methods to handle Flutter IAP
// Your app's code
try {
final profile = await Adapty().makePurchase(product: product);
// successful purchase
} on AdaptyError catch (adaptyError) {
// handle the error
} catch (e) {
}
// Your app's code
try {
final profile = await Adapty().restorePurchases();
// check the access level
} on AdaptyError catch (adaptyError) {
// handle the error
} catch (e) {
}
// Your app's code
try {
await Adapty().identify(customerUserId);
} on AdaptyError catch (adaptyError) {
// handle the error
} catch (e) {
}
// Your app's code
final builder = AdaptyProfileParametersBuilder()
..setFirstName("John")
..setLastName("Appleseed")
try {
await Adapty().updateProfile(builder.build());
} on AdaptyError catch (adaptyError) {
// handle the error
} catch (e) {
}
// Your app's code
try {
await Adapty().updateAttribution("<attribution>", source: "<source>", networkUserId: "<networkUserId>");
} on AdaptyError catch (adaptyError) {
// handle the error
} catch (e) {
}
Adapty powers apps at every stage from indie to top publishers
The Flutter SDK includes everything you need to grow your app

Increase subscription revenue without app releases
Cut refund rate by 40%


Know your subscription numbers at any moment
No-code paywall builder

FAQ
How do I implement in-app purchases in Flutter?
To implement in-app purchases in Flutter, try Adapty’s SDK as a replacement for flutter-iap. It supports both iOS and Android, and handles subscriptions out of the box, including analytics, receipt validation, and more.
Need help? Check out our Flutter IAP tutorial with code examples.
What’s the difference between Adapty and flutter-iap?
Flutter-IAP gives you low-level access to store APIs, but you’ll need to build subscription logic, analytics, and A/B testing on your own. Adapty handles all that out of the box: one SDK for subscriptions, paywalls, and revenue tracking with no backend required.
Do I need to build my own backend to use Adapty?
No, you don’t. Adapty takes care of subscription management and server-side validation. You don’t have to manually handle
getSubscriptions
,requestSubscription
or receipt checks like in flutter-iap.Does Adapty support iOS and Android?
Yes, Adapty supports in app purchases in Flutter apps on both iOS and Android, whether you’re using the standard Flutter-IAP plugin or not.
Where can I find code examples and docs?
You can explore the Flutter IAP documentation with setup guides, Flutter in-app purchases examples, and detailed instructions for handling purchases, upgrades, and renewals.