public void InitializeRevenueCat(){ _purchases = GetComponentInChildren<Purchases>(); _userService = ServiceLocator.Instance.GetService<UserService>(); _analyticService = ServiceLocator.Instance.GetService<AnalyticService>(); var builder = Purchases.PurchasesConfiguration.Builder.Init("goog_YguHktEysEcVmKHkVbWMeVQyhjB"); var purchasesConfiguration = builder .SetUserDefaultsSuiteName(_userService.CurrentUser.Username) .SetAppUserId(_userService.CurrentUser.Id) .SetPurchasesAreCompletedBy(Purchases.PurchasesAreCompletedBy.MyApp, Purchases.StoreKitVersion.Default) .Build(); _purchases.SetLogLevel(Purchases.LogLevel.Verbose); _purchases.Configure(purchasesConfiguration); Debug.LogWarning("Initialized Revenue Cat Purchases");}
public void BuyProductWithId(string productId, Action<bool> onComplete = null){ _purchases.PurchaseProduct(productId, (_, info, cancelled, error) => { if (cancelled) { onComplete?.Invoke(false); } else if (error != null && !string.IsNullOrEmpty(error.Message)) { onComplete?.Invoke(false); } } I added the products to the Products section in the RevenueCat dashboard. I am initializing them this way and want to make purchases using the product ID, but I am getting a "Couldn't find product" error. What could be the reason for this? By the way, I haven't created any offers because my game doesn't have an offer or subscription system—only consumable and non-consumable products.