Stripe Checkout Session

Stripe Checkout Session with payment status, mode, and customer details.

Report an issue
stripe

Install

$ npx shadcn@latest add @open-types/stripe-checkout-session

Dependencies

Source

import type { StripeMetadata } from "./stripe-shared";

export type StripeCheckoutSessionStatus = "open" | "complete" | "expired";

export type StripePaymentStatus = "paid" | "unpaid" | "no_payment_required";

export type StripeCheckoutSessionMode = "payment" | "setup" | "subscription";

export interface StripeCheckoutSession {
  id: string;
  object: "checkout.session";
  amount_total: number | null;
  currency: string | null;
  customer: string | null;
  customer_email: string | null;
  mode: StripeCheckoutSessionMode;
  payment_intent: string | null;
  payment_status: StripePaymentStatus;
  status: StripeCheckoutSessionStatus | null;
  success_url: string | null;
  cancel_url: string | null;
  url: string | null;
  metadata: StripeMetadata;
  created: number;
  livemode: boolean;
}
import type { StripeMetadata } from "./stripe-shared";

export type StripeCheckoutSessionStatus = "open" | "complete" | "expired";

export type StripePaymentStatus = "paid" | "unpaid" | "no_payment_required";

export type StripeCheckoutSessionMode = "payment" | "setup" | "subscription";

export interface StripeCheckoutSession {
  id: string;
  object: "checkout.session";
  amount_total: number | null;
  currency: string | null;
  customer: string | null;
  customer_email: string | null;
  mode: StripeCheckoutSessionMode;
  payment_intent: string | null;
  payment_status: StripePaymentStatus;
  status: StripeCheckoutSessionStatus | null;
  success_url: string | null;
  cancel_url: string | null;
  url: string | null;
  metadata: StripeMetadata;
  created: number;
  livemode: boolean;
}