Hi RevenueCat team,
I'm experiencing an issue with the relative_discount calculation in my paywall.
Setup
- Package 1: 6 months subscription at €59.99
- Package 2: 12 months subscription at €55.00 (with 8% OFF badge)
Expected behavior
The annual package should show ~54% discount compared to 6-month package:
- 6 months annualized: €59.99 × 2 = €119.98/year
- 12 months: €55.00/year
- Real discount: (119.98 - 55) / 119.98 = 54.17%
Actual behavior
PaywallView displays "8% OFF" which is incorrect.
Questions
1. How is relative_discount calculated exactly?
2. Is this comparing against a different reference price?
3. Should I configure something specific in my offering setup?
Environment
- purchases_ui_flutter: ^8.10.1
- Platform: Android/iOS
Any guidance would be appreciated!
