Session

class Session

A Session tracks the process of collecting a payment from your customer.

Types

Link copied to clipboard

The configuration and bounds for adjusting an item's quantity.

Link copied to clipboard
class Amount

A localized monetary amount and its unformatted minor-unit value.

Link copied to clipboard

A localized monetary amount that supports fractional minor units.

Link copied to clipboard

An aggregate discount calculated across all items.

Link copied to clipboard
abstract class OrderSummaryItem

An item included in the order summary.

Link copied to clipboard

Display data for the customer's currently selected payment option.

Link copied to clipboard

Information about the currency presented to the customer during payment.

Link copied to clipboard

The customer's shipping contact details and postal address.

Link copied to clipboard
sealed class Status

The status of a checkout session.

Link copied to clipboard
class Tax

Tax computation state for a checkout session.

Link copied to clipboard
class TaxAmount

A tax amount included in an item or aggregated across the session.

Link copied to clipboard
class Totals

Aggregate amounts for the checkout session.

Properties

Link copied to clipboard

The business name configured in the Business Public Details settings of your Stripe account, or null if unavailable.

Link copied to clipboard

The three-letter ISO currency code (e.g., "usd"), or null if the session has no currency.

Link copied to clipboard

Aggregate discounts across all order-summary items.

Link copied to clipboard

The customer's email address from the checkout session.

Link copied to clipboard
val id: String

The checkout session ID (e.g., "cs_xxx").

Link copied to clipboard

Whether Currency Selector Element has content to display for this checkout session.

Link copied to clipboard

Whether this checkout session was created in live mode.

Link copied to clipboard

The factor used to convert amounts in the smallest currency unit to the major currency unit (e.g., 100 for USD and 1 for JPY), or null if the session has no currency.

Link copied to clipboard
Link copied to clipboard

The customer's currently selected payment option, or null if none has been selected yet.

Link copied to clipboard

Details about the currency presented to the customer, or null if the session is not using adaptive pricing.

Link copied to clipboard

The customer's shipping contact details and postal address, if one has been collected.

Link copied to clipboard

The status of the Session (open, complete, or expired).

Link copied to clipboard

Tax computation state, when available.

Link copied to clipboard

Aggregate tax amounts, or null before tax is computed.

Link copied to clipboard

The tax and discount breakdown for the computed session total.