# RevenueDot documentation: Getting started > RevenueDot is an open-source backend for in-app purchases and subscriptions on the App Store, Google Play and the web. It has an SDK for every platform. RevenueDot Cloud Pro is free until your apps make $10,000 a month, then 0.5% of revenue above that, never more than $999 a month; Enterprise is custom. The server is AGPL-3.0 and the SDKs are MIT. > RevenueDot is also the open-source RevenueCat alternative: the first release is v2026.10.03, and it has run in production beside RevenueCat since 2026-10-02. > Start for free on RevenueDot Cloud (https://app.revenuedot.app/signup). Building and testing are free, no card needed. Add a card when you go live; Pro costs $0 until your apps make $10,000 a month. A new app installs the RevenueDot SDK for its platform and passes its API key; on RevenueDot Cloud nothing else is needed. An app switching from RevenueCat can keep the RevenueCat SDK, set its proxy URL to RevenueDot and keep its purchase code, offerings and customers. > It verifies App Store and Google Play purchases on the server, keeps each customer's entitlements current from store notifications, and sends webhooks in RevenueCat's payload format. > On RevenueDot Cloud, apps use the API at https://api.revenuedot.app and people sign in to the dashboard at https://app.revenuedot.app/login. The server is AGPL-3.0. The RevenueDot SDKs are MIT, built from RevenueCat's open-source SDKs, and keep RevenueCat's class and method names, so code imports RevenueCat and calls Purchases. RevenueDot is not affiliated with RevenueCat, Inc. Generated from https://github.com/revenuedot/docs by scripts/gen-llms.mjs. Index: https://revenuedot.app/llms.txt # What is RevenueDot? Source: https://revenuedot.app/docs/getting-started.md Description: RevenueDot is an open-source backend for in-app purchases and subscriptions on the App Store, Google Play, Amazon, Stripe and the web. Install the RevenueDot SDK and start for free on RevenueDot Cloud. RevenueDot is an open-source backend for in-app purchases and subscriptions on the App Store, Google Play, Amazon, Stripe and the web. You install the RevenueDot SDK in your app. RevenueDot then checks every purchase with the store, keeps each customer's access in sync and tells your backend what happened. The quickest start is **RevenueDot Cloud**: [start for free](https://app.revenuedot.app/signup). Building and testing are free, no card needed. Add a card when you go live; Pro costs $0 until your apps make $10,000 a month. ```swift // iOS: install the RevenueDot SDK, then pass your app's key. On RevenueDot Cloud that is all the setup. import RevenueCat Purchases.configure(withAPIKey: "appl_...") ``` The RevenueDot SDK is built from RevenueCat's open-source SDK (MIT license), so your code imports `RevenueCat` and calls `Purchases`. It sends every request to RevenueDot and needs no RevenueCat account. The install line for every platform is in [Which SDKs does RevenueDot have?](https://revenuedot.app/docs/sdks.md). [![Watch the 2½-minute demo of the RevenueDot platform](https://revenuedot.app/videos/revenuedot-platform-demo.webp)](https://revenuedot.app/videos/revenuedot-platform-demo.mp4) *Watch the 2:32 walkthrough, or [on YouTube](https://www.youtube.com/watch?v=iZH8eTC5B1c). [Watch page](https://revenuedot.app/watch/revenuedot-platform-demo).* > Every page states what exists today and what is planned. Current limits are listed in [Known issues](https://revenuedot.app/docs/help/known-issues.md). ## RevenueDot checks purchases, keeps access in sync and runs your paywalls - **It checks every purchase with the store.** App Store purchases are verified against Apple's signed transactions and the App Store Server API. Google Play purchases are verified with the Google Play Developer API. Nothing is trusted from the device alone. - **It keeps each customer's access up to date.** It turns store events (renewals, cancellations, billing problems, refunds, pauses) into **entitlements**. An entitlement is the access your app checks, such as `pro`. - **It serves your paywall's contents.** An **offering** is the set of products your paywall shows, grouped into **packages**. You build [paywalls](https://revenuedot.app/docs/guides/paywalls.md) from templates in a visual editor and compare them with [experiments](https://revenuedot.app/docs/guides/experiments.md). - **It tells your backend what happened.** [Webhooks](https://revenuedot.app/docs/guides/webhooks.md) carry an HMAC signature, and [integrations](https://revenuedot.app/docs/guides/integrations.md) send the same events to analytics and marketing tools. - **It shows your numbers.** [Charts](https://revenuedot.app/docs/guides/charts.md) cover revenue, subscribers, trials and churn. - **It sells beyond the app stores.** [Web checkout](https://revenuedot.app/docs/guides/web-billing.md) runs on your own Stripe account, and in-app currencies let you sell credits. - **It gives you APIs and a dashboard.** REST APIs (v1 and v2) and a web dashboard manage the catalog, customers, apps, API keys and webhooks. ## RevenueDot is open source, and Cloud Pro is free until your apps make $10,000 a month | | RevenueDot | |---|---| | Source code | Open source: the server and dashboard are AGPL-3.0 ([repository](https://github.com/revenuedot/revenuedot)), and the SDKs are MIT | | Where it runs | RevenueDot Cloud at `https://api.revenuedot.app` | | Price | RevenueDot Cloud Pro is free until your apps make $10,000 a month, then 0.5% of revenue above that, never more than $999 a month; Enterprise is custom. See [Cloud billing](https://revenuedot.app/docs/guides/cloud-billing.md) | | App changes | Install the RevenueDot SDK and pass your app's key. | | Data | RevenueDot runs the database for you | ## Your app talks to RevenueDot, and RevenueDot talks to the stores ```text Your app (RevenueDot SDK) │ GET /v1/subscribers/{id}, GET .../offerings, POST /v1/receipts ▼ RevenueDot server ◀──── App Store Server Notifications v2, Google Play real-time notifications │ Postgres (customers, purchases, events) ├──▶ Webhooks to your backend (INITIAL_PURCHASE, RENEWAL, EXPIRATION ...) └──▶ Dashboard and REST API (catalog, customers, keys) ``` 1. The app asks RevenueDot for offerings and customer info. 2. The user buys through the App Store, Google Play or the built-in **Test Store**. The Test Store lets you buy before you have an App Store or Google Play account. 3. The SDK posts the purchase to `POST /v1/receipts`. RevenueDot verifies it with the store and answers with updated customer info, including active entitlements. 4. Later changes, such as renewals and refunds, arrive as store notifications. RevenueDot updates the customer and sends webhooks. ## Switching from RevenueCat? Keep your SDK and change one line An app that already ships the RevenueCat SDK can keep it. Set the SDK's proxy URL to RevenueDot before `configure`, turn off its response-signature check, and keep your purchase code. RevenueDot implements the API that the RevenueCat SDKs call, its REST APIs are RevenueCat-compatible, and its webhooks use RevenueCat's payload shape. ```swift // Switching from RevenueCat: keep the RevenueCat SDK and point it at RevenueDot Cloud, or at your own server. Purchases.proxyURL = URL(string: "https://api.revenuedot.app")! Purchases.configure(with: Configuration.Builder(withAPIKey: "appl_...").with(entitlementVerificationMode: .disabled).build()) ``` The full order of steps, with the importer and a side-by-side run, is in [Migrate from RevenueCat](https://revenuedot.app/docs/migrate.md). RevenueDot is not affiliated with, endorsed by or sponsored by RevenueCat, Inc. "RevenueCat" is a trademark of RevenueCat, Inc. and is used here only to describe compatibility. ## Where to go next - **Try it in 5 minutes:** [create a free RevenueDot Cloud account](https://app.revenuedot.app/signup), then follow the [Quickstart](https://revenuedot.app/docs/getting-started/quickstart.md). - **Install the SDK for your platform:** [SDK guides](https://revenuedot.app/docs/sdks.md). - **Learn the model:** [Concepts](https://revenuedot.app/docs/concepts.md). - **Already selling with your own StoreKit or Google Play Billing code?** [Import your products](https://revenuedot.app/docs/guides/import-products.md) from App Store Connect, Google Play or Stripe, install the RevenueDot SDK, and call `syncPurchases()` once so current subscribers keep access. See [How do I connect my app?](https://revenuedot.app/docs/getting-started/connect-your-app.md). - **Switching from RevenueCat? Keep your SDK and change one line:** [Migrate from RevenueCat](https://revenuedot.app/docs/migrate.md). - **Run your own server (advanced):** [Self-hosting](https://revenuedot.app/docs/guides/self-hosting.md) and [Going to production](https://revenuedot.app/docs/guides/going-to-production.md). - **Look something up:** [API reference](https://revenuedot.app/docs/api.md), [Help center](https://revenuedot.app/docs/help.md), [Blog](https://revenuedot.app/blog.md). --- # How do I make a first purchase with RevenueDot in 5 minutes? Source: https://revenuedot.app/docs/getting-started/quickstart.md Description: Create a RevenueDot Cloud account, add a Test Store app with a product and an entitlement, make a test purchase from the dashboard, then install the RevenueDot SDK in your app and pass your key. Create an account on **RevenueDot Cloud**, add a Test Store app with one product and one entitlement, make a test purchase from the dashboard, then install the RevenueDot SDK in your app and pass it your key. You need no server, no App Store account and no Google Play account. Building and testing are free, no card needed. Add a card when you go live; Pro costs $0 until your apps make $10,000 a month. [![Watch the 1:18 walkthrough of a first RevenueDot test purchase](https://revenuedot.app/videos/revenuedot-first-purchase.webp)](https://revenuedot.app/videos/revenuedot-first-purchase.mp4) *Watch the 1:18 walkthrough, or [on YouTube](https://www.youtube.com/watch?v=1YLygdbWOKM). [Watch page](https://revenuedot.app/watch/revenuedot-first-purchase).* ## 1. Create an account 1. Open [app.revenuedot.app/signup](https://app.revenuedot.app/signup). 2. Enter your email, a password of at least 8 characters, and a name for your first project. A project holds your apps, products and customers. 3. Open the email from RevenueDot and click the link to confirm your address. The link works for 24 hours. Cloud needs a confirmed address before you can create secret API keys or invite teammates. The dashboard opens on **Overview**, with a six-step setup checklist. To sign in later, use [app.revenuedot.app/login](https://app.revenuedot.app/login). ## 2. Add a Test Store app, a product and an entitlement The **Test Store** is RevenueDot's built-in store for testing. Its purchases unlock entitlements and send webhooks like real ones, and they are always sandbox data. Do it in the dashboard: 1. **Apps:** add an app of type **Test Store**. 2. **Product catalog, Products:** add a product for the Test Store app, for example `pro_monthly`, a subscription that lasts one month. 3. **Product catalog, Entitlements:** add an entitlement called `pro` and attach the product. Your app checks this entitlement to unlock paid features. 4. **Product catalog, Offerings:** add an offering called `default`, give it a package with the product, and make it current. The SDK reads this offering to build the paywall. Or seed all of it with one script. It needs `curl` and `jq`, and it uses only the public API. It signs in with the account you just made, then adds a Test Store app, three products, a `pro` entitlement, a `default` offering and a secret key. Run it after you confirm your email, because Cloud creates secret keys only for confirmed accounts: ```bash curl -fsSLO https://raw.githubusercontent.com/revenuedot/examples/main/selfhost/docker-compose/seed.sh RD_URL=https://api.revenuedot.app RD_EMAIL=you@example.com RD_PASSWORD='your password' bash seed.sh ``` The script prints the project id, the Test Store key (`test_...`) and a secret key (`sk_...`). Keep the secret key on your server only. Sign in to the dashboard at [app.revenuedot.app/login](https://app.revenuedot.app/login), even though the script prints the API address. ## 3. Make a test purchase from the dashboard On **Overview**, click **Make a test purchase**. Keep the app user ID `test_user_1`, pick the product and click **Purchase**. The purchase runs through the same steps as a real one. Open **Customers** and click `test_user_1`: the customer has the `pro` entitlement, active for one month, and the purchase events are listed. ## 4. Install the RevenueDot SDK and pass your key Copy the Test Store key (it starts with `test_`) from **API keys**. Install the RevenueDot SDK for your platform and pass the key to `configure`. On RevenueDot Cloud that is all the setup, because the SDK already sends its requests to `https://api.revenuedot.app`. The RevenueDot SDK is built from RevenueCat's open-source SDK (MIT license), so your code imports `RevenueCat` and calls `Purchases`. It sends every request to RevenueDot and needs no RevenueCat account. **iOS.** In Xcode, choose **File > Add Package Dependencies**, enter `https://github.com/revenuedot/purchases-ios`, pick the exact version `5.91.0-revenuedot` and add the `RevenueCat` product. With CocoaPods, add `pod 'RevenueDotPurchases', '5.91.0'` instead. ```swift import RevenueCat Purchases.configure(withAPIKey: "test_...") ``` **Android.** Add the package from Maven Central, then configure the SDK in `Application.onCreate()`. ```kotlin // build.gradle.kts implementation("app.revenuedot.purchases:purchases:10.23.3") ``` ```kotlin Purchases.configure(PurchasesConfiguration.Builder(this, "test_...").build()) ``` **React Native and Expo.** The npm alias installs the RevenueDot SDK under the name `react-native-purchases`, so your code imports `Purchases` from `"react-native-purchases"`. ```bash npm install react-native-purchases@npm:@revenuedot/react-native-purchases@10.10.2 ``` ```ts import Purchases from "react-native-purchases"; Purchases.configure({ apiKey: "test_..." }); ``` **Flutter.** Add the SDK as a git dependency. The pub.dev names belong to RevenueCat, so the RevenueDot SDK comes from GitHub. ```yaml # pubspec.yaml dependencies: purchases_flutter: git: url: https://github.com/revenuedot/purchases-flutter.git ref: 10.13.2-revenuedot ``` ```dart import 'package:purchases_flutter/purchases_flutter.dart'; await Purchases.configure(PurchasesConfiguration('test_...')); ``` The install lines for the web, Capacitor, Kotlin Multiplatform, Unity and Cordova are in the [SDK guides](https://revenuedot.app/docs/sdks.md). Native SDKs accept `test_` keys only in debug builds. Ship with the `appl_` and `goog_` keys from your App Store and Google Play apps. The shortest way to see a purchase in an app is the [purchases-js web example](https://github.com/revenuedot/examples/tree/main/web/purchases-js-vite), which runs in a browser. The second `npm install` swaps in the RevenueDot SDK for the web through an npm alias, so the example's imports stay as they are. The example reads the server address from `VITE_REVENUEDOT_URL`. ```bash git clone https://github.com/revenuedot/examples.git && cd examples/web/purchases-js-vite npm install npm install @revenuecat/purchases-js@npm:@revenuedot/purchases-js@1.67.0 printf "VITE_REVENUEDOT_URL=https://api.revenuedot.app\nVITE_REVENUEDOT_API_KEY=test_...\n" > .env.local npm run dev # open http://localhost:5199, click Buy, then "Test valid purchase" ``` > **Switching from RevenueCat?** Keep the RevenueCat SDK your app already ships. Set its proxy URL to `https://api.revenuedot.app` before `configure`, and turn off its response-signature check. See [How do I connect my app?](https://revenuedot.app/docs/getting-started/connect-your-app.md#switching-from-revenuecat-keep-your-sdk-and-set-one-line) and [Migrate from RevenueCat](https://revenuedot.app/docs/migrate.md). Give each Test Store product a price in the dashboard (Product catalog, Edit product, Test Store price) so the paywall shows it. A product without one shows 0. Real prices come from the App Store and Google Play. See [Test Store](https://revenuedot.app/docs/guides/test-store.md). ## Run your own server (advanced) Most people should use RevenueDot Cloud above. If your company requires its own server, the server on Cloud is the same open-source code. You need Docker with Compose v2, plus `git`, `curl` and `jq`. Most of the 5 minutes is the first image build. ### 1. Start RevenueDot ```bash git clone https://github.com/revenuedot/revenuedot.git cd revenuedot cp .env.example .env # sets POSTGRES_PASSWORD; change it before the first start docker compose up -d # pulls ghcr.io/revenuedot/revenuedot, starts the server and Postgres curl http://localhost:8787/v1/health ``` ```json {"status":"ok"} ``` One container serves the SDK API, the REST API and the dashboard on port 8787. To use another host port, set `REVENUEDOT_PORT=8797` in `.env`. The dashboard is at `http://localhost:8787/login`; the bare `/` path returns a small JSON document. ### 2. Seed a project with a Test Store app The seed script uses only the public API. It creates a dashboard account and project, a Test Store app, three products, a `pro` entitlement, a `default` offering and a secret key. ```bash curl -fsSLO https://raw.githubusercontent.com/revenuedot/examples/main/selfhost/docker-compose/seed.sh bash seed.sh # RD_URL=http://localhost:8797 bash seed.sh for another port ``` ```text RevenueDot is seeded. Dashboard http://localhost:8787 (sign in as dev@example.com) Project id projqhf9p5jb Test Store key test_960d2b3001bac439c7a73d7f4214514c <- the SDK's API key; the SDK's proxy URL is http://localhost:8787 Secret key sk_8b8dc12a743e51f4de759b0b9c6d372e6d25d32fe7280672 <- server-side only (REST API, backend checks) Try it: curl -s -H "Authorization: Bearer test_960d2b3001bac439c7a73d7f4214514c" http://localhost:8787/v1/subscribers/user_1/offerings ``` Save the two keys for the next steps: ```bash export TEST_KEY=test_... # the Test Store key printed above export SECRET_KEY=sk_... # the secret key printed above ``` To see what the script does, or to do it by hand, read [the seed script](https://github.com/revenuedot/examples/blob/main/selfhost/docker-compose/seed.sh). Each step is one REST API v2 call. You can also do everything in the dashboard. ### 3. Ask for offerings, as the SDK does ```bash curl -s -H "Authorization: Bearer $TEST_KEY" http://localhost:8787/v1/subscribers/user_1/offerings ``` ```json {"current_offering_id":"default","offerings":[{"description":"Standard plans","identifier":"default","metadata":null,"packages":[{"identifier":"$rc_monthly","platform_product_identifier":"pro_monthly"},{"identifier":"$rc_annual","platform_product_identifier":"pro_annual"},{"identifier":"$rc_lifetime","platform_product_identifier":"pro_lifetime"}]}]} ``` ### 4. Make a Test Store purchase In an app, the SDK makes this call for you after the user confirms the Test Store dialog. The Test Store accepts any `fetch_token` of the form `test__`. ```bash curl -s http://localhost:8787/v1/receipts \ -H "Authorization: Bearer $TEST_KEY" -H "Content-Type: application/json" \ -d "{\"app_user_id\":\"user_1\",\"fetch_token\":\"test_$(date +%s)000_quickstart\",\"product_id\":\"pro_monthly\",\"price\":9.99,\"currency\":\"USD\"}" ``` The answer is the customer's info. `pro` is now in `entitlements`, active until one month from now: ```json { "request_date": "2026-09-30T19:49:29Z", "subscriber": { "entitlements": { "pro": { "expires_date": "2026-10-30T19:49:29Z", "grace_period_expires_date": null, "product_identifier": "pro_monthly", "purchase_date": "2026-09-30T19:49:29Z" } }, "original_app_user_id": "user_1", "subscriptions": { "pro_monthly": { "store": "test_store", "is_sandbox": true, "period_type": "normal", "expires_date": "2026-10-30T19:49:29Z", "...": "..." } } }, "purchased_products": { "pro_monthly": { "should_consume": false } } } ``` Check the same customer through the REST API with the secret key: ```bash curl -s -H "Authorization: Bearer $SECRET_KEY" \ "http://localhost:8787/v2/projects//customers/user_1/active_entitlements" ``` The same `curl` calls work on Cloud: replace `http://localhost:8787` with `https://api.revenuedot.app`. ### 5. Set the SDK's proxy URL to your server Install the RevenueDot SDK as in [step 4 above](https://revenuedot.app/docs/getting-started/quickstart.md#4-install-the-revenuedot-sdk-and-pass-your-key). Then add one line of setup before `configure`: the SDK's proxy URL, which is your server's address, for example `http://localhost:8787`. Then set entitlement verification to `disabled`. The RevenueDot SDK trusts RevenueDot Cloud's response-signing key, and your server signs with its own key. iOS and Android default to informational mode, so the code below sets `disabled`. React Native and Flutter already default to `disabled`. See [Trusted Entitlements](https://revenuedot.app/docs/guides/trusted-entitlements.md). ```swift // iOS: set your server's address before configure. Purchases.proxyURL = URL(string: "http://localhost:8787")! Purchases.configure(with: Configuration.Builder(withAPIKey: "test_...").with(entitlementVerificationMode: .disabled).build()) ``` ```kotlin // Android: the emulator reaches your computer at 10.0.2.2. Purchases.proxyURL = URL("http://10.0.2.2:8787") Purchases.configure(PurchasesConfiguration.Builder(this, "test_...").entitlementVerificationMode(EntitlementVerificationMode.DISABLED).build()) ``` ```ts // React Native / Expo: verification is already disabled by default. await Purchases.setProxyURL("http://localhost:8787"); Purchases.configure({ apiKey: "test_..." }); ``` ```dart // Flutter: verification is already disabled by default. await Purchases.setProxyURL('http://localhost:8787'); await Purchases.configure(PurchasesConfiguration('test_...')); ``` On the Android emulator, use `http://10.0.2.2:8787`, because the emulator reaches your computer at `10.0.2.2`. In the purchases-js example, set `VITE_REVENUEDOT_URL=http://localhost:8787`. The same lines work with the RevenueCat SDK if your app already ships it. To run it for real customers, read [Self-hosting](https://revenuedot.app/docs/guides/self-hosting.md) and [Going to production](https://revenuedot.app/docs/guides/going-to-production.md). ## Next steps - Receive the purchase on your backend: [Webhooks](https://revenuedot.app/docs/guides/webhooks.md). - Simulate renewals, cancellations and refunds without waiting: [Test Store](https://revenuedot.app/docs/guides/test-store.md). - Learn how entitlements, offerings and customers fit together: [Concepts](https://revenuedot.app/docs/concepts.md). - Connect a real store: [App Store](https://revenuedot.app/docs/guides/app-store.md), [Google Play](https://revenuedot.app/docs/guides/google-play.md). - Show a paywall: [Paywalls](https://revenuedot.app/docs/guides/paywalls.md). - Switching from RevenueCat? Keep your SDK and change one line: [Migrate from RevenueCat](https://revenuedot.app/docs/migrate.md). --- # How do I connect my app to RevenueDot? Source: https://revenuedot.app/docs/getting-started/connect-your-app.md Description: Install the RevenueDot SDK for your platform and pass your app's key; on RevenueDot Cloud nothing else is needed. An app switching from RevenueCat can instead keep its SDK and set one line, and the importer keeps its RevenueCat API keys working. Install the RevenueDot SDK for your platform and pass your app's API key to `configure`. On RevenueDot Cloud that is all the setup, because the SDK already calls `https://api.revenuedot.app`. This is the way for new apps. It is also the way for any app that wants the SDK to verify that each response came from RevenueDot and to send nothing to RevenueCat's hosts. An app that already ships the RevenueCat SDK can instead keep it and set one line, the **proxy URL**. When such an app switches, the importer lets versions already in users' hands keep their **RevenueCat API keys**. | Way | Who it is for | What you change in the app | What you get | Status (2026-10-02) | |---|---|---|---|---| | [Install the RevenueDot SDK](https://revenuedot.app/docs/getting-started/connect-your-app.md#install-the-revenuedot-sdk-and-pass-your-key) | **Every new app (the default)** | Add the package and pass your app's key | Signed responses verify against RevenueDot Cloud; no traffic to RevenueCat's hosts | Released for all ten SDKs | | [Keep the RevenueCat SDK and set one line](https://revenuedot.app/docs/getting-started/connect-your-app.md#switching-from-revenuecat-keep-your-sdk-and-set-one-line) | Apps switching from RevenueCat | One setting, the proxy URL, plus the verification mode | Purchases, customer info and offerings go to RevenueDot. Some diagnostics and analytics still go to RevenueCat ([known limits](https://revenuedot.app/docs/help/known-issues.md#sdk-features)) | Works with every RevenueCat app SDK | | [Keep your RevenueCat keys](https://revenuedot.app/docs/getting-started/connect-your-app.md#keep-your-revenuecat-api-keys) | Apps switching from RevenueCat | Nothing | App versions already in users' hands keep working | Works (importer) | ## Install the RevenueDot SDK and pass your key ```swift // iOS: Swift package github.com/revenuedot/purchases-ios at 5.91.0-revenuedot, or pod 'RevenueDotPurchases', '5.91.0'. import RevenueCat Purchases.configure(withAPIKey: "appl_...") ``` ```kotlin // Android: implementation("app.revenuedot.purchases:purchases:10.23.3"), then in Application.onCreate(): Purchases.configure(PurchasesConfiguration.Builder(this, "goog_...").build()) ``` ```ts // React Native and Expo: npm install react-native-purchases@npm:@revenuedot/react-native-purchases@10.10.2 import { Platform } from "react-native"; import Purchases from "react-native-purchases"; Purchases.configure({ apiKey: Platform.OS === "ios" ? "appl_..." : "goog_..." }); ``` The RevenueDot SDK is built from RevenueCat's open-source SDK (MIT license), so your code imports `RevenueCat` and calls `Purchases`. It sends every request to RevenueDot and needs no RevenueCat account. It keeps the names your code imports (`import RevenueCat`, `com.revenuecat.purchases.*`, `package:purchases_flutter`). These changes matter to your app: - Each SDK calls `https://api.revenuedot.app` (RevenueDot Cloud) by default, so a Cloud project needs no proxy URL. - Each SDK trusts RevenueDot's response-signing key, so entitlement verification reports `VERIFIED` against RevenueDot Cloud. - The Android SDK and purchases-js send their diagnostics and events to RevenueDot too. - The proxy URL works on Flutter web. There is a RevenueDot SDK for iOS, Android, React Native and Expo, Flutter, the web, Capacitor and Ionic, Kotlin Multiplatform, Unity and Cordova. The install line for each one is in [Which SDKs does RevenueDot have?](https://revenuedot.app/docs/sdks.md): CocoaPods and Swift packages for iOS, Maven Central for Android and Kotlin Multiplatform, npm for the web, React Native, Capacitor and Cordova, a git tag for Flutter, and OpenUPM for Unity. **Self-hosting:** also set the SDK's proxy URL to your server before `configure`, and set entitlement verification to `disabled`. A self-hosted server signs with its own key, so the official builds only verify against RevenueDot Cloud. The iOS, Android, Capacitor and Unity SDKs default to informational mode, which would log every response from your server as a failed check, so they need the setting. React Native, Flutter and Kotlin Multiplatform already default to `disabled`. Cordova has no setting for it, so it logs the failed checks and still grants access. Each [SDK guide](https://revenuedot.app/docs/sdks.md) shows the code. To verify against your own server, build the SDKs with your key; see [Trusted Entitlements](https://revenuedot.app/docs/guides/trusted-entitlements.md#verify-against-your-own-server). ## Switching from RevenueCat? Keep your SDK and set one line An app that already ships the RevenueCat SDK can keep it. Set the SDK's proxy URL to RevenueDot (`https://api.revenuedot.app` for RevenueDot Cloud, or your own server) and turn its signature check off. That is **proxy mode**, and it works with every RevenueCat app SDK. [![Watch the 1:18 walkthrough of connecting an app to RevenueDot](https://revenuedot.app/videos/revenuedot-connect-your-app.webp)](https://revenuedot.app/videos/revenuedot-connect-your-app.mp4) *Watch the 1:18 walkthrough of proxy mode, or [on YouTube](https://www.youtube.com/watch?v=M_D0YodECkU). [Watch page](https://revenuedot.app/watch/revenuedot-connect-your-app).* ```swift // iOS. Keep the RevenueCat SDK and point it at your RevenueDot server; nothing else in the app changes. Purchases.proxyURL = URL(string: "https://revenuedot.example.com")! Purchases.configure(with: Configuration.Builder(withAPIKey: "appl_...").with(entitlementVerificationMode: .disabled).build()) ``` ```kotlin // Android. Keep the RevenueCat SDK and point it at your RevenueDot server; nothing else in the app changes. Purchases.proxyURL = URL("https://revenuedot.example.com") Purchases.configure(PurchasesConfiguration.Builder(context, "goog_...").entitlementVerificationMode(EntitlementVerificationMode.DISABLED).build()) ``` ```ts // React Native and Expo. Keep the RevenueCat SDK and point it at your RevenueDot server; nothing else in the app changes. import { Platform } from "react-native"; import Purchases from "react-native-purchases"; await Purchases.setProxyURL("https://revenuedot.example.com"); Purchases.configure({ apiKey: Platform.OS === "ios" ? "appl_..." : "goog_..." }); ``` - **Set the proxy URL before `configure`.** The SDK reads it once. For RevenueDot Cloud it is `https://api.revenuedot.app`. - **Turn entitlement verification off.** The RevenueCat SDK checks responses against RevenueCat's signing key. RevenueDot cannot sign with that key, so iOS and Android would report every response as `FAILED` in their default informational mode. Access still works, but the logs fill with errors. See [Trusted Entitlements](https://revenuedot.app/docs/guides/trusted-entitlements.md). - **Use the keys RevenueDot gives each app** (`appl_`, `goog_`, `test_` ...), or keep your RevenueCat keys as described below. - **Known limits.** The RevenueCat Android SDK still sends diagnostics, paywall events and ad events to RevenueCat's hosts. RevenueCat's purchases-js sends analytics to RevenueCat unless you set `flags: { collectAnalyticsEvents: false }`. Flutter's web build ignores the proxy URL. - **You can swap in the RevenueDot SDK later**, in any release. It is a package change, because it keeps every import name. Every SDK's exact call is in its guide: [iOS](https://revenuedot.app/docs/sdks/ios.md), [Android](https://revenuedot.app/docs/sdks/android.md), [React Native](https://revenuedot.app/docs/sdks/react-native.md), [Flutter](https://revenuedot.app/docs/sdks/flutter.md), [Web](https://revenuedot.app/docs/sdks/web.md), [Capacitor](https://revenuedot.app/docs/sdks/capacitor.md), [Kotlin Multiplatform](https://revenuedot.app/docs/sdks/kotlin-multiplatform.md), [Unity](https://revenuedot.app/docs/sdks/unity.md), [Cordova](https://revenuedot.app/docs/sdks/cordova.md). ## Keep your RevenueCat API keys Apps already in the store send their RevenueCat public key (`appl_...`, `goog_...`). The [importer](https://revenuedot.app/docs/migrate/importer.md) sets each RevenueDot app's public key to that same string, so old app versions work against RevenueDot the moment you point traffic at it. You can also do it for one app with the API: ```bash curl -s -X POST "$REVENUEDOT_URL/v2/projects/$PROJECT_ID/import/apps/$APP_ID/public_key" \ -H "Authorization: Bearer $SECRET_KEY" -H "Content-Type: application/json" \ -d '{"public_key":"appl_YourExistingRevenueCatKey"}' ``` Old app versions still call RevenueCat's API until they update, because the proxy URL lives in the app. That is why a migration runs both systems side by side for a while. See [Migrate from RevenueCat](https://revenuedot.app/docs/migrate.md). ## New apps install the RevenueDot SDK; switching apps can start with one line - **New app, or new to in-app purchases:** install the RevenueDot SDK and test with the Test Store. See the [Quickstart](https://revenuedot.app/docs/getting-started/quickstart.md). - **Already selling with your own StoreKit or Google Play Billing code:** [import your products](https://revenuedot.app/docs/guides/import-products.md) from App Store Connect, Google Play or Stripe, install the RevenueDot SDK, and call `syncPurchases()` once on the first launch of the update. It sends the device's existing store purchases to RevenueDot, so current subscribers keep access. Store notifications keep them current after that. - **You rely on entitlement verification:** install the RevenueDot SDK. When you self-host, build it with your server's key. - **Self-hosting:** install the RevenueDot SDK, set its proxy URL to your server and set entitlement verification to `disabled`. - **Moving a live app from RevenueCat:** use proxy mode or the RevenueDot SDK in the next release, keep your RevenueCat keys through the importer, and run both systems side by side in a [dual run](https://revenuedot.app/docs/migrate/dual-run.md) until most users have updated. ## Related - [Quickstart](https://revenuedot.app/docs/getting-started/quickstart.md) - [SDK guides](https://revenuedot.app/docs/sdks.md) - [Which key goes where](https://revenuedot.app/docs/concepts/projects-and-apps.md#which-key-goes-where) - [Why we forked the RevenueCat SDKs](https://revenuedot.app/blog/why-we-forked-the-revenuecat-sdks.md)