Skip to content

toBetterAuthPlans

function toBetterAuthPlans(catalog, options?): BetterAuthStripePlan[];

Defined in: src/billing/better-auth.ts:127

Generate the plugin’s plans from the catalog: one per plan (current version) that has a Stripe price id — name is the plan key, priceId the first mapped price, limits the plan’s features, freeTrial the plan’s trial and group its group (omitted for "base").

Parameter Type
catalog AnyCatalog
options? BetterAuthPlansOptions

BetterAuthStripePlan[]