@suluk/billing - v0.2.0
    Preparing search index...

    Interface CheckoutOpts

    interface CheckoutOpts {
        userId: string;
        customerId: string | null;
        amountCents: number;
        credits: number;
        successUrl: string;
        cancelUrl: string;
        productName: string;
    }
    Index

    Properties

    userId: string
    customerId: string | null

    the user's existing customer (reused so a saved card isn't orphaned), or null to let Checkout create one.

    amountCents: number
    credits: number
    successUrl: string

    the URL Stripe returns to on success (the app composes it from its origin + route).

    cancelUrl: string
    productName: string

    the line-item product name shown on the hosted page, e.g. "acme — 600 credits".