---
title: "Starting with RevenueCat"
description: "RevenueCat makes it easy to build, analyze, and grow in-app purchases and subscriptions on iOS, Android, and the web – no server code required."
canonical: "https://www.revenuecat.com/build-vs-buy"
---

*Build vs Buy*

# Get in-app purchases right the first time

In-app purchase infrastructure is core to your business, but building it yourself pulls resources away from your product. RevenueCat helps you launch faster, reduce maintenance, and trust your IAP data.

[Request a demo](https://app.revenuecat.com/signup)
[Explore Product Demo](/talk-to-sales/)

- **37,000+** — lines of custom code replaced
- **1 API** — across every platform
- **$19B+** — revenue processed

## Invest in a solid foundation for your app’s monetization


## A dedicated IAP engineering team - that won’t leave you

Custom IAP code owned by a few engineers creates long-term risk. RevenueCat gives you a dedicated team focused on keeping your app monetization running smoothly.

```
Purchases.shared.purchase(package: package) {
    (transaction, customerInfo, error, userCancelled) in
  let entitlement = customerInfo.entitlements["your_entitlement_id"]
  if entitlement?.isActive == true {
    // Unlock that great "pro" content              
  }
}
```

### objective-c

```objective-c
[[RCPurchases sharedPurchases] purchasePackage:package
                                withCompletion:^(RCStoreTransaction *transaction,
                                                RCCustomerInfo *customerInfo,
                                                NSError *error,
                                                BOOL cancelled) {
  if (customerInfo.entitlements[@"your_entitlement_id"].isActive) {
    // Unlock that great "pro" content
  }
}];
```

### kotlin

```kotlin
Purchases.sharedInstance.purchasePackage(
  this,
  aPackage,
  onError = { error, userCancelled -> /* No purchase */ },
  onSuccess = { product, customerInfo ->
    val entitlement = customerInfo.entitlements["my_entitlement_identifier"]
    if (entitlement?.isActive == true) {
    // Unlock that great "pro" content
  }
})
```

### java

```java
Purchases.getSharedInstance().purchasePackage(
  this,
  aPackage,
  new MakePurchaseListener() {
    @Override
    public void onCompleted(
      @NonNull Purchase purchase,
      @NonNull CustomerInfo customerInfo
    ) {
      if (customerInfo.getEntitlements().get("my_entitlement_identifier").isActive()) {
        // Unlock that great "pro" content
      }
    }

    @Override
    public void onError(@NonNull PurchasesError error, Boolean userCancelled) {
      // No purchase
    }
  }
);
```

### flutter

```flutter
try {
 PurchaserInfo purchaserInfo = await Purchases.purchasePackage(
  package
 );
 if (purchaserInfo.entitlements.all["my_entitlement_identifier"]
  .isActive) {
  // Unlock that great "pro" content
 }
} on PlatformException catch (e) {
 /* No purchase */ 
}
```

### react-native

```react-native
try {
 const {
  purchaserInfo,
  productIdentifier
 } = await Purchases.purchasePackage(package);
 if (typeof purchaserInfo.entitlements.active.pro !== "undefined") {
  // Unlock that great "pro" content
 }
} catch (e) {
 /* No purchase */ 
}
```

### cordova

```cordova
Purchases.purchasePackage(package, ({ productIdentifier, purchaserInfo }) => {
    if (typeof purchaserInfo.entitlements.active.my_entitlement_identifier !== "undefined") {
      // Unlock that great "pro" content
    }
  },
  ({error, userCancelled}) => {
    // Error making purchase
  }
);

// Note: if you are using purchaseProduct to purchase Android In-app products, an optional third parameter needs to be provided when calling purchaseProduct. You can use the package system to avoid this.

Purchases.purchaseProduct("product_id", ({ productIdentifier, purchaserInfo }) => {
}, ({error, userCancelled}) => {
    // Error making purchase
}, null, Purchases.PURCHASE_TYPE.INAPP);
```

### unity

```unity
Purchases purchases = GetComponent<Purchases>();
purchases.PurchasePackage(package, (productIdentifier, purchaserInfo, userCancelled, error) =>
{
  if (purchaserInfo.Entitlements.Active.ContainsKey("my_entitlement_identifier")) {
    // Unlock that great "pro" content
  }
});
```

## Free up engineering hours to focus on what matters

Every engineering hour spent on in-app payment
infrastructure is an hour wasted. Leverage your
engineers to build the features that will grow your
app while we handle monetization.

## Don’t lose revenue to unreliable data

In-house IAP systems often create data quality issues that slow growth. RevenueCat gives you a cross-platform source of truth, sending normalized data wherever you need it.

## RevenueCat handles what StoreKit and Google Play Billing don’t

## We're here to help

### Explore the Docs
Our comprehensive docs can get you up and running quickly.
[Explore the docs](/docs/getting-started/quickstart)

### Developer Community
Ask questions and find answers in the RevenueCat community forum.
[Join the community](https://community.revenuecat.com/get-help-5)

### Dedicated Support
Our support team is on call for our enterprise clients with dedicated resources boasting a 96.3% support satisfaction rate.
[Ask a question](/contact)


## Want to see how  RevenueCat can help?

Our entire suite of feature comes standard and it's free to get started.

[Start for free](https://app.revenuecat.com/signup)
[Talk to sales](/talk-to-sales/)
