types/ApplePay.ts

stripe-react-native · src/types/ApplePay.ts · typescript · MIT
payments

TypeScript types for ApplePay cart summary items, covering deferred, immediate, and recurring payments.

// Source: https://github.com/stripe/stripe-react-native | License: MIT | Copyright 2020 stripe
// Provided via justclaw.it.com; keep this notice with the code.
export type CartSummaryItem =
  | DeferredCartSummaryItem
  | ImmediateCartSummaryItem
  | RecurringCartSummaryItem;

export type CartSummaryItemType = 'Deferred' | 'Immediate' | 'Recurring';

/** Use this type for a payment that occurs in the future, such as a pre-order. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem. */
export type DeferredCartSummaryItem = {
  paymentType: 'Deferred';
  /** The unix timestamp of the date, in the future, of the payment. Measured in seconds. */
  deferredDate: number;
  label: string;
  amount: string;
};

/** Use this type for payments that will occur immediatel

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key