Skip to main content

Making it easier to get offer duration and introductory offer duration

  • October 28, 2021
  • 0 replies
  • 115 views

Forum|alt.badge.img+6

Hi, 

 

Apologies if I have missed an obvious property. I am referring to displaying the duration, specifically before a user has purchased a subscription and is looking at the landing page of offers available. 

 

It seems to get duration for an offer, you need to get the package type, and then transform accordingly into your preferred display value, ie PackageType.annual => ‘12 Months’. Looks like there should be a ‘subscriptionPeriod’ property somewhere, that looks like ‘P1Y’, but I guess it is higher than the offer, perhaps in the offering? The introductory price then has a separate duration code, something like ‘P6M’, so you need another function to transform that into something readable. ie ‘6 Months’ and perhaps another function if you wanted to get the duration value and calculate something like price per day or month. 

 

It would be nice to have a simple duration property, preferably as a Duration object in the Flutter SDK, which would reduce the need for transforming codes into Strings and other objects. 

 

Thanks 

 

 

 

0 replies

Be the first to reply!

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