Mayson Monorepo Documentation
    Preparing search index...

    A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access control over a Customer.

    Related guides: Customer Session with the Payment Element, Customer Session with the Pricing Table, Customer Session with the Buy Button.

    interface CustomerSession {
        object: "customer_session";
        client_secret: string;
        components?: Stripe.CustomerSession.Components;
        created: number;
        customer: string | Stripe.Customer;
        customer_account: string;
        expires_at: number;
        livemode: boolean;
    }
    Index

    Properties

    object: "customer_session"

    String representing the object's type. Objects of the same type share the same value.

    client_secret: string

    The client secret of this Customer Session. Used on the client to set up secure access to the given customer.

    The client secret can be used to provide access to customer from your frontend. It should not be stored, logged, or exposed to anyone other than the relevant customer. Make sure that you have TLS enabled on any page that includes the client secret.

    Configuration for the components supported by this Customer Session.

    created: number

    Time at which the object was created. Measured in seconds since the Unix epoch.

    customer: string | Stripe.Customer

    The Customer the Customer Session was created for.

    customer_account: string

    The Account that the Customer Session was created for.

    expires_at: number

    The timestamp at which this Customer Session will expire.

    livemode: boolean

    Has the value true if the object exists in live mode or the value false if the object exists in test mode.