Stripe Payment Intent

Stripe PaymentIntent with amount, currency, status lifecycle, and metadata.

Report an issue
stripe

Install

$ npx shadcn@latest add @open-types/stripe-payment-intent

Dependencies

Source

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

export type StripePaymentIntentStatus =
  | "requires_payment_method"
  | "requires_confirmation"
  | "requires_action"
  | "processing"
  | "requires_capture"
  | "canceled"
  | "succeeded";

export interface StripePaymentIntent {
  id: string;
  object: "payment_intent";
  amount: number;
  amount_received: number;
  currency: string;
  status: StripePaymentIntentStatus;
  client_secret: string | null;
  payment_method: string | null;
  description: string | null;
  metadata: StripeMetadata;
  created: number;
  livemode: boolean;
}
import type { StripeMetadata } from "./stripe-shared";

export type StripePaymentIntentStatus =
  | "requires_payment_method"
  | "requires_confirmation"
  | "requires_action"
  | "processing"
  | "requires_capture"
  | "canceled"
  | "succeeded";

export interface StripePaymentIntent {
  id: string;
  object: "payment_intent";
  amount: number;
  amount_received: number;
  currency: string;
  status: StripePaymentIntentStatus;
  client_secret: string | null;
  payment_method: string | null;
  description: string | null;
  metadata: StripeMetadata;
  created: number;
  livemode: boolean;
}