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