onWinBackPurchase property
final
Perform a purchase the funnel sells at the package's win-back offer
yourself (a purchase with "offer": "win_back" the visitor is
eligible for): buy it with Rovenue.purchase(product, winBackOffer:),
the offer from Rovenue.eligibleWinBackOffers(product) whose
identifier is winBackOfferId (iOS: StoreKit's offer id; Android:
"<basePlanId>:<offerId>"). Return whether it went through.
Null with onPurchase set: onPurchase gets the package and buys it at the regular price. Null with neither set: the SDK buys at the win-back offer itself.
Implementation
final Future<bool> Function(String packageId, String winBackOfferId)? onWinBackPurchase;