Description
Google Play supports multiple offers for one-time (INAPP) products, but this functionality is currently not exposed through RevenueCat's Flutter SDK.
A corresponding implementation is being proposed for purchases-android to support retrieving, selecting, and purchasing Google Play one-time product offers.
The Flutter SDK should expose this functionality once the underlying Android SDK support is available.
Expected behavior
For a Google Play one-time product, the Flutter SDK should provide a way to:
- Retrieve the available one-time product offers.
- Access the relevant offer information.
- Select a specific one-time product offer.
- Initiate a purchase using the selected offer.
- Initiate a purchase with the best offer when no specific offer is selected.
Use case
A Google Play one-time product may have multiple offers, for example:
- Regular price: $99
- Offer price: $39
A Flutter application should be able to retrieve the available offers, display the appropriate localized offer price, allow the user/application to select an offer, and purchase the product using that offer.
Android dependency
Support for one-time product offers is being implemented in purchases-android draft pr RevenueCat/purchases-android#4158.
The Proposed Android implementation introduces:
OneTimePurchaseOfferDetails
OneTimePurchaseOfferDetailsList
GoogleOneTimePurchaseOfferDetails
- Default offer selection
- Explicit offer selection through
PurchaseParams
- Passing the selected
offerToken to Google Play Billing
Related Android issue:
Motivation
Without Flutter support, Flutter applications cannot use Google Play's one-time product offer functionality through RevenueCat.
Applications would otherwise need to bypass RevenueCat and interact directly with Google Play Billing, which introduces additional complexity around purchase processing and entitlement handling.
Requested support
Add Flutter support for the one-time product offer functionality being introduced in purchases-android, including retrieving available offers and providing a supported way to select an offer when purchasing a product.
Description
Google Play supports multiple offers for one-time (
INAPP) products, but this functionality is currently not exposed through RevenueCat's Flutter SDK.A corresponding implementation is being proposed for
purchases-androidto support retrieving, selecting, and purchasing Google Play one-time product offers.The Flutter SDK should expose this functionality once the underlying Android SDK support is available.
Expected behavior
For a Google Play one-time product, the Flutter SDK should provide a way to:
Use case
A Google Play one-time product may have multiple offers, for example:
A Flutter application should be able to retrieve the available offers, display the appropriate localized offer price, allow the user/application to select an offer, and purchase the product using that offer.
Android dependency
Support for one-time product offers is being implemented in
purchases-androiddraft pr RevenueCat/purchases-android#4158.The Proposed Android implementation introduces:
OneTimePurchaseOfferDetailsOneTimePurchaseOfferDetailsListGoogleOneTimePurchaseOfferDetailsPurchaseParamsofferTokento Google Play BillingRelated Android issue:
Motivation
Without Flutter support, Flutter applications cannot use Google Play's one-time product offer functionality through RevenueCat.
Applications would otherwise need to bypass RevenueCat and interact directly with Google Play Billing, which introduces additional complexity around purchase processing and entitlement handling.
Requested support
Add Flutter support for the one-time product offer functionality being introduced in
purchases-android, including retrieving available offers and providing a supported way to select an offer when purchasing a product.