PurchaseParams.package constructor
- Package package, {
- GoogleProductChangeInfo? googleProductChangeInfo,
- bool? googleIsPersonalizedPrice,
- PromotionalOffer? promotionalOffer,
- WinBackOffer? winBackOffer,
- String? customerEmail,
Creates purchase parameters for a package.
package The package to purchase.
googleProductChangeInfo Android and Google Play only. Optional GoogleProductChangeInfo you wish to
change from containing the googleOldProductIdentifer and the optional prorationMode.
googleIsPersonalizedPrice Android and Google Play only. Optional boolean indicates
personalized pricing on products available for purchase in the EU.
For compliance with EU regulations. User will see "This price has been
customized for you" in the purchase dialog when true.
See https://developer.android.com/google/play/billing/integrate#personalized-price
for more info.
promotionalOffer iOS only. Promotional offer that will be applied to the product.
Retrieve this offer using Purchases.getPromotionalOffer.
Ignored if winBackOffer is provided or in Android and web platforms.
winBackOffer iOS only. Win-back offer that will be applied to the product.
Retrieve this offer using Purchases.getEligibleWinBackOffersForPackage. If both a promotional offer
and a win-back offer are provided, the promotional offer will be ignored.
customerEmail Web only. The email of the user. If undefined, RevenueCat
will ask the customer for their email.
Implementation
const PurchaseParams.package(
Package package, {
GoogleProductChangeInfo? googleProductChangeInfo,
bool? googleIsPersonalizedPrice,
PromotionalOffer? promotionalOffer,
WinBackOffer? winBackOffer,
String? customerEmail,
}) : this._(
package,
null,
null,
googleProductChangeInfo,
googleIsPersonalizedPrice,
promotionalOffer,
winBackOffer,
customerEmail,
);