Skip to main content
Question

Unity SDK

  • January 13, 2025
  • 3 replies
  • 33 views

Forum|alt.badge.img

Hello,

I would like to create a store system in Unity using RevenueCat. However, I couldn’t find exactly what I’m looking for in the documentation. My goal is to integrate RevenueCat into a game where I sell only consumable or non-consumable items, without including subscriptions or offers.

Could you provide guidance or point me in the right direction to achieve this?

Thank you!

This post has been closed for comments

3 replies

jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 240 replies
  • January 15, 2025

Hi ​@ömer-faruk-pehlivan-982e48! Much of the configuration required for subscriptions is the same for consumables and non-subscriptions. You’ll still want to add your consumable/non-subscription products from Apple/Google to RevenueCat and then add these to an Offering. I’d also review Entitlements, which allow purchases of your products to unlock various functionality in your app. You can then implement purchasing yourself or use our Paywalls.

Please let me know if you get stuck at any point. I’m happy to help. Thanks!


Forum|alt.badge.img

I currently want to use RevenueCat only as an observer. Do I still need to complete the steps on the dashboard?
(2. Configure an Entitlement, 3. Configure an Offering, 4. Connect the SDK, 5. Make a test purchase)

Regarding the code, I’ve written the following script:

var purchasesConfiguration = builder .SetUserDefaultsSuiteName(username) .SetAppUserId(userId) .SetPurchasesAreCompletedBy(Purchases.PurchasesAreCompletedBy.MyApp, Purchases.StoreKitVersion.Default) .Build(); purchases.SetLogLevel(Purchases.LogLevel.Verbose); purchases.Configure(purchasesConfiguration);

 

When purchases are successful, I call purchases.SyncPurchases();. Is this sufficient for my needs, or should I make additional changes?


jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 240 replies
  • January 21, 2025

@ömer-faruk-pehlivan-982e48 If you only want RevenueCat to observe purchases, your configuration looks good. I’m sure you’ve seen this, but our guide on using RevenueCat with your own IAP code is available here. If you’d like to discuss your requirements and configuration more in detail, please don’t hesitate to open a support ticket. We’re happy to help.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings