Make purchases, restore purchases, save subscription events and more without server coding.
Calculate and predict your app economy with real-time analytics.
Run A/B tests to find best prices and offers for your users.
Set up auto promo campaigns in push notifications to engage your freemium users to subscribers.
Adapty handles in-app purchases, restores, renewals, and receipt verification without coding.
Connect your app to Adapty without changing your payment infrastructure.
Adapty is a place where iOS and Android live together.
Deploy subscription infrastructure for your app in minutes. Implement in-app subscriptions, purchases. Restore, validate receipt in your app with our mobile SDK.
No server code required!
// Your app’s code
import { adapty, activateAdapty } from "react-native-adapty";
const App: = () => {
useEffect(() => {
activateAdapty({ sdkKey: UBLIC_SDK_KEY });
},[]);
const result = await adapty.purchases.makePurchase('product_id');
// If makePurchase didn't throw an error, everything's fine
}
// Your app's code
await Adapty.activate("PUBLIC_SDK_KEY",
customerUserId: "YOUR_USER_ID");
// Make a purchase, Adapty handles the rest
final MakePurchaseResult makePurchaseResult =
await
Adapty.makePurchase(product);
if (makePurchaseResult?.purchaserInfo?.accessLevels
['premium'].isActive) {
// grant access to premium features
}
// Your app's code
Adapty.identify("your_user_id", this);
// Make a purchase, Adapty handles the rest
Adapty.makePurchase(product, null, this);
public void OnMakePurchase(PurchaserInfoModel purchaserInfo, string receipt, Dictionary<string, object> validationResult, ProductModel product, AdaptyError error) {
if (error == null) {
// successful purchase
}
}
Get the most out of your subscription business