OpenUPM or git
com.revenuedot.purchases-unity 9.11.1 on OpenUPM, or the git tag 9.11.1-revenuedot.
SDK
To add in-app purchases to a Unity game, install the RevenueDot plugin with openupm add com.revenuedot.purchases-unity and paste your app's appl_ and goog_ keys on the Purchases component. RevenueDot checks each purchase with the App Store or Google Play and keeps each player's access in sync. Purchases run on iOS and Android devices and simulators. RevenueDot Cloud is free until your game makes $10,000 a month.
Free until your app makes $10,000 a month. Switching from RevenueCat? Change one line.
com.revenuedot.purchases-unity 9.11.1 on OpenUPM, or the git tag 9.11.1-revenuedot.
Paste your keys on the Purchases component. RevenueDot Cloud is the default server.
Check Use Runtime Setup and call Configure from a script.
The Editor uses a no-op wrapper, so buy on an iOS or Android device or simulator.
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 game checks) and a current offering (the products your paywall shows).
Run openupm add com.revenuedot.purchases-unity. On the Purchases component, paste your appl_ and goog_ keys into the Apple and Google API key fields. RevenueDot Cloud is the default server, so the keys are the only setting.
Check Use Runtime Setup and call Configure from a script that runs after Purchases.Start(), as in the code below.
Call PurchasePackage and read customerInfo.Entitlements.Active. See the Test Store to buy without store accounts.
Install
The RevenueDot plugin is built from RevenueCat's open-source Unity plugin (MIT license), so your scripts use the Purchases component and the RevenueCat namespace. It sends every request to RevenueDot and needs no RevenueCat account.
The External Dependency Manager pulls RevenueDot's native iOS and Android packages. The paywall package (RevenueCatUI folder) installs from git.
Self-hosting? Set the Proxy URL field under Advanced to your server and Entitlement Verification Mode to Disabled, because your server signs with its own key. Unity has no public SetProxyURL method, so the field is the only way. See Trusted Entitlements.
# Install with OpenUPM
openupm add com.revenuedot.purchases-unity
# Or Package Manager > Add package from git URL:
# https://github.com/revenuedot/purchases-unity.git?path=RevenueCat#9.11.1-revenuedot
// Inspector: Purchases component → API keys
// Paste your app's key; RevenueDot Cloud is the default server. C#
The script must run after Purchases.Start(), which creates the native wrapper. Calling Configure before it throws a NullReferenceException. [DefaultExecutionOrder(100)] makes Unity call your Start() after it.
using UnityEngine;
[DefaultExecutionOrder(100)]
[RequireComponent(typeof(Purchases))]
public class Store : MonoBehaviour
{
void Start()
{
var purchases = GetComponent<Purchases>();
purchases.Configure(Purchases.PurchasesConfiguration.Builder.Init("appl_...").Build());
purchases.GetOfferings((offerings, error) =>
{
if (error != null || offerings.Current == null) return;
purchases.PurchasePackage(offerings.Current.AvailablePackages[0], result =>
{
if (result.UserCancelled || result.Error != null) return;
bool nowPro = result.CustomerInfo.Entitlements.Active.ContainsKey("pro");
});
});
}
} Notes
appl_ and goog_ keys.Switch
If your game already ships RevenueCat's Unity plugin, you can keep it. On the Purchases component, set Proxy URL under Advanced to https://api.revenuedot.app and Entitlement Verification Mode to Disabled. The component applies the field before it configures the SDK, also with runtime setup. Then call SyncPurchases() once on the first launch of the update, so current players keep access. The full plan is in Migrate from RevenueCat.
// Once, on the first launch of this update
GetComponent<Purchases>().SyncPurchases(); | Inspector field | Before | After |
|---|---|---|
| Proxy URL (under Advanced) | empty | https://api.revenuedot.app |
| Entitlement Verification Mode | Informational | Disabled |
| Revenue Cat API Key Apple and Google | your keys | appl_ and goog_ keys from RevenueDot, or your RevenueCat keys if the importer kept them |
FAQ
No. The RevenueDot plugin is built from RevenueCat's open-source Unity plugin under the MIT license, but every request goes to RevenueDot. Create a free RevenueDot Cloud project, copy your app's keys and paste them on the Purchases component.
Install the RevenueDot plugin from OpenUPM, paste your appl_ and goog_ keys on the Purchases component, then fetch offerings and call PurchasePackage. RevenueDot checks each purchase with the App Store or Google Play and keeps the player's entitlements in sync.
Your script ran before Purchases.Start(), which creates the native wrapper. Add [DefaultExecutionOrder(100)] to your script so Unity calls your Start() after the Purchases component's.
No. In the Editor the SDK uses a no-op wrapper and makes no requests. Run on an iOS or Android device or simulator, with a Test Store key in a debug build if you have no store account.
In the Inspector, on the Purchases component, under Advanced. Unity has no public SetProxyURL method. The component applies the field before it configures the SDK, also when you use runtime setup.
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