Classic Plans Paywall
fun ClassicPlansPaywall(plans: List<PaywallPlan>, features: List<PaywallFeature>, legal: PaywallLegal, onPurchase: (PaywallPlan) -> Unit, onRestore: () -> Unit, onClose: () -> Unit, modifier: Modifier = Modifier, title: String = stringResource(R.string.pw_classic_title), subtitle: String? = stringResource(R.string.pw_classic_subtitle), initialPlanId: String? = null, heroIcon: ImageVector = PaywallIcons.Sparkle)(source)
Design 1, classic plans: an animated hero, a feature list and stacked plan cards (for example monthly, yearly and lifetime). The badged plan is preselected.
Parameters
plans
plans to offer, in display order.
features
benefits listed under the title.
legal
Terms and Privacy links shown in the footer.
on Purchase
called with the selected plan when the button is tapped. Start your billing flow here.
on Restore
called from the footer Restore link.
on Close
called from the close button.
initial Plan Id
id of the plan to preselect. Defaults to the first plan with a badge.