ClassicPlansPaywall

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.

onPurchase

called with the selected plan when the button is tapped. Start your billing flow here.

onRestore

called from the footer Restore link.

onClose

called from the close button.

initialPlanId

id of the plan to preselect. Defaults to the first plan with a badge.