Question

Discover and display products from offerings at run time

  • 15 February 2023
  • 1 reply
  • 36 views

Badge +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

Userlevel 6
Badge +8

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