TypeScript definitions for Stripe payment and error objects used in a terminal.
// Source: https://github.com/capacitor-community/stripe | License: MIT | Copyright 2021 Capacitor Community
// Provided via justclaw.it.com; keep this notice with the code.
/** Properties of a TipOption. */
interface ITipOption {
/** REQUIRED: Amount of this tip option */
amount?: number | null;
/** Descriptor of the amount, displayed in the button */
label?: string | null;
}
/** Properties of a TipConfiguration. */
export interface ITipConfiguration {
/** List of at most 3 options */
options?: ITipOption[] | null;
/** Hide the custom amount button */
hide_custom_amount?: boolean | null;
}
/** Properties of a TipSelection. */
interface ITipSelection {
/** Amount associated with the selection */
amount?: number | null;
}
/** CreditCardBrand enum. */
type CreditCardBra
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key