PaywallPlan

constructor(id: String, title: String, price: String, period: String, trialText: String? = null, badge: String? = null, priceDetail: String? = null, isSubscription: Boolean = true)(source)

Parameters

id

your own identifier, handed back in onPurchase so you can find the real product.

title

short name, e.g. "Yearly".

price

formatted price from the store, e.g. "$29.99". Never hard-code prices in production.

period

billing period shown next to the price, e.g. "per year" or "one-time".

trialText

free trial terms, e.g. "7-day free trial". null means no trial.

badge

optional highlight, e.g. "Best value".

priceDetail

optional helper line, e.g. "$2.49/month, billed yearly".

isSubscription

false for one-time purchases such as lifetime access. It changes the auto-renew disclosure shown under the button.