Skip to main content

Product level metadata

  • December 16, 2024
  • 1 reply
  • 34 views

Forum|alt.badge.img+2

Hi there,

I’m trying to build a subscription flow with some limitations for my plans. 

Currently i have the code from my Stripe implementation where i have set metadata for each product.

My Silver plan can save up to 10 things per month and my Gold plan can save up to 100 things.

I see that you have implemented the ability to add metadata per in Offerings but not in Products.

 

Do you plan to add metadata to products as well or is there any other workaround to achieve what i mentioned above?

 

Thanks!

This post has been closed for comments

1 reply

jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 300 replies
  • December 18, 2024

Hi ​@batteryLove! I have shared your feedback with my product team regarding product-level metadata. For now, you could still do this with offering metadata, setting the key as your product ID and the value as the number of things the product can unlock.

However, one way some developers handle this is by catching purchase webhooks and updating a value in your database, which your app can then reference for how many items a customer of yours is entitled to. This implementation does require you to have your own backend, however.

I’m happy to help if you have additional questions. Thanks!


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