Skip to content

Latest commit

 

History

History
51 lines (44 loc) · 1.27 KB

File metadata and controls

51 lines (44 loc) · 1.27 KB

Payment

Supported Types

components.CardPayment

const value: components.CardPayment = {
  createdAt: new Date("2025-08-19T22:20:52.095Z"),
  modifiedAt: new Date("2025-02-12T06:48:23.838Z"),
  id: "<value>",
  processor: "stripe",
  status: "succeeded",
  amount: 1000,
  currency: "usd",
  method: "card",
  trigger: "subscription_cycle",
  declineReason: "insufficient_funds",
  declineMessage: "Your card has insufficient funds.",
  organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
  checkoutId: "e4b478fa-cd25-4253-9f1f-8a41e6370ede",
  orderId: "e4b478fa-cd25-4253-9f1f-8a41e6370ede",
  methodMetadata: {
    brand: "visa",
    last4: "4242",
  },
};

components.GenericPayment

const value: components.GenericPayment = {
  createdAt: new Date("2026-02-18T21:30:37.361Z"),
  modifiedAt: new Date("2026-03-12T09:03:17.148Z"),
  id: "<value>",
  processor: "stripe",
  status: "succeeded",
  amount: 1000,
  currency: "usd",
  method: "card",
  trigger: "subscription_cycle",
  declineReason: "insufficient_funds",
  declineMessage: "Your card has insufficient funds.",
  organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
  checkoutId: "e4b478fa-cd25-4253-9f1f-8a41e6370ede",
  orderId: "e4b478fa-cd25-4253-9f1f-8a41e6370ede",
};