An array of CartSummaryItem item objects that summarize the amount of the payment. If you're using a SetupIntent for a recurring payment, you should set this to display the amount you intend to charge.
Sets the text displayed by the call to action button in the Apple Pay sheet.
A typical request is for a one-time payment. To support different types of payment requests, include a PaymentRequestType. Only supported on iOS 16 and up.
Callback function for setting the order details (retrieved from your server) to give users the
ability to track and manage their purchases in Wallet. Stripe calls your implementation after the
payment is complete, but before iOS dismisses the Apple Pay sheet. You must call the completion
function, or else the Apple Pay sheet will hang.
The two-letter ISO 3166 code of the country of your business, e.g. "US"
The three-letter ISO 4217 alphabetic currency code, e.g. "USD" or "EUR". Required in order to support Google Pay when processing a Setup Intent.
Whether or not to use the Google Pay test environment. Set to true
until you have applied for and been granted access to the Production environment.
An optional label to display with the amount. Google Pay may or may not display this label depending on its own internal logic. Defaults to a generic label if none is provided.
An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided.
The Google Pay button type to use. Set to "Pay" by default. See Google's documentation for more information on button types.
Used to customize the appearance of your PaymentSheet
The font used for regular text. PaymentSheet will attempt to use medium and bold versions of this font if they exist.
On iOS, this should be the "PostScript name" found in Font Book after installing the font. On Android, this should be the name of the font file (containing only lowercase alphanumeric characters) in android/app/src/main/res/font
The scale factor for all fonts in your PaymentSheet. This value is required to be greater than 0. Font sizes are multiplied by this value before being displayed. For example, setting this to 1.2 increases the size of all text by 20%.
The color of the shadow.
The alpha or opacity of the shadow.
The positioning of the shadow relative to the component. For example, a negative x and y will result in a shadow placed below and to the left of the component.
The blur radius of the shadow.
A primary color used throughout your PaymentSheet, represented as a hex string with format #RRGGBB or #AARRGGBB.
The color used for the background of your PaymentSheet, represented as a hex string with format #RRGGBB or #AARRGGBB.
The color used for the background of inputs, tabs, and other components in your PaymentSheet, represented as a hex string with format #RRGGBB or #AARRGGBB.
The color used for the external border of inputs, tabs, and other components in your PaymentSheet, represented as a hex string with format #RRGGBB or #AARRGGBB.
The color used for the internal border (meaning the border is shared with another component) of inputs, tabs, and other components in your PaymentSheet, represented as a hex string with format #RRGGBB or #AARRGGBB.
The color of the header text in your PaymentSheet, represented as a hex string with format #RRGGBB or #AARRGGBB.
The color of the label text of input fields, represented as a hex string with format #RRGGBB or #AARRGGBB.
The color of the input text in your PaymentSheet components, such as the user's card number or zip code, represented as a hex string with format #RRGGBB or #AARRGGBB.
The color of the placeholder text of input fields, represented as a hex string with format #RRGGBB or #AARRGGBB.
The color used for icons in your Payment Sheet, such as the close or back icons, represented as a hex string with format #RRGGBB or #AARRGGBB.
The color used to indicate errors or destructive actions in your Payment Sheet, represented as a hex string with format #RRGGBB or #AARRGGBB.
The font family used specifically for the primary button.
The colors used specifically for the primary button. Provide either a base config, or both light
and dark
configs, which will be useed based on whether the user is in Light or Dark mode.
Describes the border and shadow of the primary button.
The border radius used for the primary button in your PaymentSheet
The border width used for the primary button in your PaymentSheet
iOS only. The shadow used for the primary button in your PaymentSheet
The background color used for the primary button in your PaymentSheet, represented as a hex string with format #RRGGBB or #AARRGGBB.
The color of the text for the primary button in your PaymentSheet, represented as a hex string with format #RRGGBB or #AARRGGBB.
The border color used for the primary button in your PaymentSheet, represented as a hex string with format #RRGGBB or #AARRGGBB.
The number of milliseconds (after presenting) before the Payment Sheet closes automatically, at which point
presentPaymentSheet
will resolve with an error.code
of PaymentSheetError.Timeout
. The default is no timeout.
How to collect the name field. Defaults to CollectionMode.automatic
.
How to collect the phone field. Defaults to CollectionMode.automatic
.
How to collect the email field. Defaults to CollectionMode.automatic
.
How to collect the billing address. Defaults to CollectionMode.automatic
.
Whether the values included in Configuration.defaultBillingDetails
should be attached to the payment method, this includes fields that aren't displayed in the form. If false
(the default), those values will only be used to prefill the corresponding fields in the form.
Generated using TypeDoc
The two-letter ISO 3166 code of the country of your business, e.g. "US"