Skip to main content
Question

Discover and display products from offerings at run time

  • February 15, 2023
  • 1 reply
  • 46 views

Forum|alt.badge.img+3

Hi there,

I could not find an example or answer to this - but how do I display all products from an offering (along with price AND subscription duration)? 

Ideally I can iterate the offerings?.current.availablePackages correct?

But then, how do I get each of the package price AND sub duration? 

Thanks in advance,

 

1 reply

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 497 replies
  • February 17, 2023

Hey @Marcio! Happy to help.

That’s correct - you can iterate through the packages in an offering for individual products to show in your paywall. Each package includes an underlying ‘StoreProduct’ that includes relevant information about pricing, duration, and other metadata for the products. You can read more in our docs: https://www.revenuecat.com/docs/displaying-products#getting-the-product-from-the-package


Reply


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