
Public override void CustomerInfoReceived(Purchases.CustomerInfo customerInfo) Public class PurchasesListener : Purchases.UpdatedCustomerInfoListener If using the RevenueCat plugin older than 2.3.0 alongside Unity IAP or other plugin that includes the Android InAppBillingService class, or you are getting Duplicate class .IInAppBillingService please update to the latest Unity SDK or see the legacy install instructions 📘Īndroid InAppBillingService in versions of purchases-unity < 2.3.0 If you don't see the option under the Assets menu after restarting the editor, try reinstalling the RevenueCat plugin or manually importing the EDM4U plugin. Otherwise our plugin will not be able to compile. Make sure the ExternalDependencyManager is properly installed.

If you're running purchases-unity v3.5.1 or later, also make sure that the RevenueCatPostInstall script is added, since it will set up StoreKit for iOS and prevent issues when uploading builds to App Store Connect in Unity 2020. These folders will install the EDM4U plugin, which will add all the Android and iOS dependencies automatically when building your project. Make sure the PlayServiceResolver and the ExternalDependencyManager folders are also added. Import the downloaded unitypackage to your Unity project. We currently don't distribute that version through UPM.ĭownload the latest version of Purchases.unitypackage. If you're using UnityIAP, you will need to install our SDK through the Purchases-UnityIAP.unitypackage method below.

To do that, install the OpenUPM-CLI if you haven't already, then run openupm add -unity. If you prefer, you can also use OpenUPM-CLI to add the scoped registry and the package through the command line.

