News
Adapty on Tech Crunch Read more
Purchases SDK

Deploy in-app purchases in minutes with no server code

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
No credit card needed
No setup
Read the docs

// Make a purchase, Adapty handles the rest
Adapty.makePurchase(product: <product>, offerId: <offerid>) { (receipt, response, error) in
   if error == nil {
       // successful purchase
   }
}

Developer friendly SDK

Adapty provides server side receipt verification and A/B testing for in-app products without app releases. We hide a complex logic of subscription infrastructure behind a simple SDK.

100% reliable purchases SDK

1 line of code integration

Analyze & promote subscribers without changing you legacy subscription infrastructure.

Observer mode

Use as simple as a single line of code.

Adapty.activate("PUBLIC_SDK_KEY", customerUserId: "YOUR_USER_ID", observerMode: true)

100% Open Source

Adapty.syncPurchases { error ->    
if (error == null) {    
   
  // successful sync    
 }
}

100% Open Source

// Your app’s code

import { activateAdapty } from "react-native-adapty";

const App: React.FC = () => {
 ...
 useEffect(() => {
   activateAdapty({ sdkKey: "YOUR_SDK_KEY" });
 },[]);
 ...
}

100% Open Source

await Adapty.activate("PUBLIC_SDK_KEY", customerUserId: "YOUR_USER_ID");

100% Open Source

Adapty.identify("my_customer_id", this);

100% Open Source

5 SDK methods to complete subscription infrastructure

With just five SDK methods get payments processing, purchases restoring and A/B tests solution.

Management mode

Only 5 SDK methods for full integration.

// Your app’s code
import Adapty
Adapty.activate("YOUR_APP_KEY")

// Make a purchase, Adapty handles the rest
Adapty.makePurchase(product: <product>, offerId: <offerid>) { (receipt, response, error) in
   if error == nil {
       // successful purchase
   }
}

100% Open Source

// Your app's code
Adapty.activate(this, "YOUR_APP_KEY")

// Make a purchase, Adapty handles the rest
Adapty.makePurchase(activity, product) { purchaserInfo, googleValidationResult, product, error ->
   if (error == null) {
       // successful purchase
   }
}

100% Open Source

// 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
}

100% Open Source

// 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
}

100% Open Source

// 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
}
}

100% Open Source