An open-source SDK for integrating in-app purchases on Android
Implement in-app purchases in 30 minutes.
Out-of-the-box back end for Android in-app purchases
Why choose Adapty SDK?
Correct subscription state at any moment
Rest assured you’ll always get the correct subscriber state across all platforms.
Server-side receipt validation
No need to worry about the correctness and safety of purchase validation.
Handling all kinds of subscription states
Free trials, upgrades, promo offers, family sharing, renewals, and more.
Enterprise-ready platform with a short release cycle
>99.99% SLA reliability and regular product updates.
Configuring platforms
Installing Adapty SDK
Adapty.activate(
"PUBLIC_SDK_KEY",
customerUserId: "YOUR_USER_ID"
)
"PUBLIC_SDK_KEY",
customerUserId: "YOUR_USER_ID"
)
Processing purchasing events
Fast and easy integration
Spend only a couple of hours to integrate the Adapty SDK into your iOS app and we’ll take care of the rest.
Just 5 SDK methods to implement Android in-app purchases
Adapty.makePurchase(activity, product) { result ->
when (result) {
is AdaptyResult.Success -> {
val info = result.value
//NOTE: info is null in case of cross-grade with DEFERRED proration mode
val profile = info?.profile
if (profile?.accessLevels?.get("YOUR_ACCESS_LEVEL")?.isActive == true) {
// grant access to premium features
}
}
is AdaptyResult.Error -> {
val error = result.error
// handle the error
}
}
}
// Your app's code
Adapty.restorePurchases { [weak self] result in
switch result {
case let .success(profile):
if info.profile.accessLevels["YOUR_ACCESS_LEVEL"]?.isActive ?? false {
// successful access restore
}
case let .failure(error):
// handle the error
}
}
 
// Your app's code
Adapty.identify("YOUR_USER_ID") { error ->
if (error == null) {
// successful identify
}
}
// Your app's code
val builder = AdaptyProfileParameters.Builder()
.with("Profile_Parameters")
Adapty.updateProfile(builder.build()) { error ->
if (error != null) {
// handle the error
}
}
// Your app's code
Adapty.updateAttribution(attribution, AdaptyAttributionSource.CUSTOM) { error ->
if (error != null) {
//handle error
}
}
People from all kinds of businesses turn to Adapty to grow their revenue
What do you get with Adapty?
Adapty SDK provides tremendous possibilities for growing app revenue
Real-time analytics for your Android App
Rely on the data with 99.5% accuracy with App Store Connect.
Get startedGravity Fit
Health & Fitness
Paywall A/B testing
Find the most profitable paywall and grow your app’s revenue.
Explore A/B testingMentalGrowth
Health & Wellness app
Remote config for paywalls
Change your paywall remotely without having
to re-release the app.
Try it nowSmitten - Dating
Lifestyle