One npm install
An npm alias installs @revenuedot/purchases-capacitor 13.6.1, so Capacitor's native names stay the same.
SDK
To add in-app purchases to a Capacitor or Ionic app, install the RevenueDot plugin from npm under the name @revenuecat/purchases-capacitor, run npx cap sync and call Purchases.configure with your app's appl_ or goog_ key. RevenueDot checks each purchase with the App Store or Google Play and keeps each customer's access in sync. RevenueDot Cloud is free until your app makes $10,000 a month.
Free until your app makes $10,000 a month. Switching from RevenueCat? Change one line.
An npm alias installs @revenuedot/purchases-capacitor 13.6.1, so Capacitor's native names stay the same.
One TypeScript API covers both native platforms. The plugin has no web implementation.
Installed from npm, it builds into a Capacitor 8 iOS app that carries api.revenuedot.app and no RevenueCat host.
Buy with a test_ key in a debug build before you have App Store or Google Play accounts.
Steps
Start for free on RevenueDot Cloud and add an App Store app and a Google Play app, or a Test Store app for a first run.
Add credentials (App Store, Google Play), then products, an entitlement such as pro (the access your app checks) and a current offering (the products your paywall shows).
Install the plugin through the npm alias below, run npx cap sync, then call Purchases.configure with the appl_ or goog_ key. On Cloud the plugin already points at RevenueDot, so your key is the only setting.
Call Purchases.purchasePackage({ aPackage }) and read customerInfo.entitlements.active["pro"].
Use a test_ key in a debug build to buy with no store account. See the Test Store.
Install
The RevenueDot plugin is built from RevenueCat's open-source plugin (MIT license). The alias installs it under the name @revenuecat/purchases-capacitor, because Capacitor derives native pod and Swift package names from the npm name. Your code calls Purchases, every request goes to RevenueDot, and you need no RevenueCat account.
For paywalls, add @revenuecat/purchases-capacitor-ui@npm:@revenuedot/purchases-capacitor-ui@13.6.1 the same way.
Self-hosting? Await Purchases.setProxyURL({ url }) with your server's URL before configure, and pass entitlementVerificationMode: ENTITLEMENT_VERIFICATION_MODE.DISABLED, because your server signs with its own key. See Trusted Entitlements.
npm install @revenuecat/purchases-capacitor@npm:@revenuedot/purchases-capacitor@13.6.1
npx cap sync
// App start
import { Capacitor } from "@capacitor/core";
import { Purchases } from "@revenuecat/purchases-capacitor";
await Purchases.configure({ apiKey: Capacitor.getPlatform() === "ios" ? "appl_..." : "goog_..." }); TypeScript
getCustomerInfo resolves to { customerInfo }, and purchasePackage takes { aPackage }.
const { customerInfo } = await Purchases.getCustomerInfo();
const isPro = customerInfo.entitlements.active["pro"] !== undefined;
const offerings = await Purchases.getOfferings();
const aPackage = offerings.current?.availablePackages[0];
if (aPackage) {
const result = await Purchases.purchasePackage({ aPackage });
const nowPro = result.customerInfo.entitlements.active["pro"] !== undefined;
} Notes
appl_ and goog_ keys.@revenuedot/purchases-capacitor would change the generated native names and is not supported.Switch
If your app already ships RevenueCat's @revenuecat/purchases-capacitor, you can keep it. Await Purchases.setProxyURL({ url }) before configure, and pass verification DISABLED. Then call Purchases.syncPurchases() once on the first launch of the update, so current subscribers keep access. The full plan is in Migrate from RevenueCat.
setProxyURL takes { url }, not a plain string.DISABLED. Never use ENFORCED: every request would fail.appl_ and goog_ keys working, so builds you already shipped keep their keys.import { Capacitor } from "@capacitor/core";
import { ENTITLEMENT_VERIFICATION_MODE, Purchases } from "@revenuecat/purchases-capacitor";
await Purchases.setProxyURL({ url: "https://api.revenuedot.app" });
await Purchases.configure({
apiKey: Capacitor.getPlatform() === "ios" ? "appl_..." : "goog_...",
entitlementVerificationMode: ENTITLEMENT_VERIFICATION_MODE.DISABLED,
});
// Once, on the first launch of this update
await Purchases.syncPurchases(); FAQ
No. The RevenueDot plugin is built from RevenueCat's open-source Capacitor plugin under the MIT license, but every request goes to RevenueDot. Create a free RevenueDot Cloud project, copy your app's keys and pass them to Purchases.configure.
Install the RevenueDot plugin through the npm alias, run npx cap sync, configure it with your appl_ or goog_ key, fetch offerings and call purchasePackage. RevenueDot checks each purchase with the store and keeps the customer's entitlements in sync.
Capacitor derives native pod and Swift package names from the npm package name. The alias installs @revenuedot/purchases-capacitor under the original name, so those native names stay the same. A direct install is not supported.
No. The plugin has no web implementation, like the open-source plugin it is built from. For web sales, use the RevenueDot web SDK or a purchase link with Stripe Checkout.
Await Purchases.setProxyURL({ url: "https://api.revenuedot.app" }) before configure, pass entitlementVerificationMode DISABLED and call syncPurchases once after the update. The plugin passes no verification default, so without DISABLED every response is logged as a failed check.
Get started
Building and testing are free, and you can test your first purchase before you have a store account. Pro costs $0 until your apps make $10,000 a month.
Already have an account? Sign in · Switching from RevenueCat? Change one line