One plugin
@revenuedot/cordova-plugin-purchases 8.2.3 is on npm, with its native dependencies on CocoaPods and Maven Central.
SDK
To add in-app purchases to a Cordova app, run cordova plugin add @revenuedot/cordova-plugin-purchases and call Purchases.configureWith with your app's appl_ or goog_ key on deviceready. RevenueDot checks each purchase with the App Store or Google Play and keeps each customer's access in sync. The plugin id and the global Purchases match the open-source plugin it is built from. Cloud is free until $10,000 a month.
Free until your app makes $10,000 a month. Switching from RevenueCat? Change one line.
@revenuedot/cordova-plugin-purchases 8.2.3 is on npm, with its native dependencies on CocoaPods and Maven Central.
The plugin trusts RevenueDot's signing key, so RevenueDot Cloud's responses verify.
The plugin id is cordova-plugin-purchases and your code calls the global Purchases.
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).
Run cordova plugin add, then call Purchases.configureWith inside the deviceready handler, as in the code below. On Cloud the plugin already points at RevenueDot, so your key is the only setting.
Call Purchases.purchasePackage with callbacks 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), so your code calls the global Purchases. It sends every request to RevenueDot and needs no RevenueCat account.
device.platform comes from cordova-plugin-device.
Self-hosting? Call Purchases.setProxyURL(...) with your server's URL before configureWith. The plugin has no verification option, and your server signs with its own key, so the native SDKs log a failed check for every response unless you build the plugin with your own public key. Access is still granted. See Trusted Entitlements.
cordova plugin add @revenuedot/cordova-plugin-purchases
// www/js/index.js
document.addEventListener("deviceready", () => {
Purchases.configureWith({ apiKey: device.platform === "iOS" ? "appl_..." : "goog_..." });
}); JavaScript
Purchases.getOfferings(
(offerings) => {
const aPackage = offerings.current && offerings.current.availablePackages[0];
if (!aPackage) return;
Purchases.purchasePackage(
aPackage,
({ customerInfo }) => {
const nowPro = customerInfo.entitlements.active["pro"] !== undefined;
},
({ error, userCancelled }) => { if (!userCancelled) console.error(error); }
);
},
(error) => console.error(error)
); Notes
appl_ and goog_ keys.<preference name="deployment-target" value="15.0" /> in config.xml and raise the pod targets in a post_install block. See the Cordova guide.Switch
If your app already ships RevenueCat's cordova-plugin-purchases, you can keep it. Call Purchases.setProxyURL before configureWith. 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.
appl_ and goog_ keys working, so builds you already shipped keep their keys.document.addEventListener("deviceready", () => {
Purchases.setProxyURL("https://api.revenuedot.app"); // returns nothing
Purchases.configureWith({
apiKey: device.platform === "iOS" ? "appl_..." : "goog_...",
});
// Once, on the first launch of this update
Purchases.syncPurchases();
}); FAQ
No. The RevenueDot plugin is built from RevenueCat's open-source Cordova 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.configureWith.
Run cordova plugin add @revenuedot/cordova-plugin-purchases, configure it on deviceready 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.
Yes. The RevenueDot plugin uses RevenueDot's native iOS and Android SDKs underneath, so App Store and Google Play purchases are handled the same way as in native apps.
Xcode 27 rejects pods that target iOS 13, and the stock plugin's pods do too. Set the deployment-target preference to 15.0 in config.xml and raise the pod targets with a post_install block or an after_prepare hook.
No. configureWith has no verification option, so the native default, informational, applies. Every RevenueDot response is logged as a failed check and access is still granted. The RevenueDot plugin trusts RevenueDot's key, so the noise goes away on Cloud.
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