Rovenue Web SDK
    Preparing search index...

    Interface WebPackagePrice

    A package's Stripe price, read on the server from the Price on the project's connected Stripe account — the same price checkout() charges.

    interface WebPackagePrice {
        amount: number;
        currency: string;
        interval: "day" | "week" | "month" | "year" | null;
        intervalCount: number | null;
        trialDays: number | null;
    }
    Index
    amount: number

    Minor units of currency (cents for USD, yen for JPY), as Stripe reports unit_amount.

    currency: string

    Lowercase ISO-4217 code, as Stripe reports it (e.g. "usd").

    interval: "day" | "week" | "month" | "year" | null

    The billing interval; null for a one-time price.

    intervalCount: number | null

    Intervals between charges (3 with "month" = quarterly); null for a one-time price.

    trialDays: number | null

    The free trial, in days, that checkout() would start for the current subscriber now: the Price's recurring.trial_period_days. null when the Price has none, the subscriber is anonymous (no app user id bound on the server), or they have held a subscription of this project before. The trial is given once per identified app user in a project.