PurchaseParams.storeProduct constructor
- StoreProduct storeProduct, {
- GoogleProductChangeInfo? googleProductChangeInfo,
- bool? googleIsPersonalizedPrice,
- PromotionalOffer? promotionalOffer,
- String? customerEmail,
Creates purchase parameters for a store product.
storeProduct
The store product 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.
customerEmail
Web only. The email of the user. If undefined, RevenueCat
will ask the customer for their email.
Implementation
const PurchaseParams.storeProduct(
StoreProduct storeProduct, {
GoogleProductChangeInfo? googleProductChangeInfo,
bool? googleIsPersonalizedPrice,
PromotionalOffer? promotionalOffer,
String? customerEmail,
}) : this._(
null,
storeProduct,
null,
googleProductChangeInfo,
googleIsPersonalizedPrice,
promotionalOffer,
customerEmail,
);