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 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 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 used to indicate errors or destructive actions in your Payment Sheet, 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 of the placeholder text of input fields, represented as a hex string with format #RRGGBB or #AARRGGBB.
A primary color used throughout 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 background color used 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 color of the text for the primary button in your PaymentSheet, represented as a hex string with format #RRGGBB or #AARRGGBB.
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.
The font family used specifically for the primary button.
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 blur radius of the shadow.
The color 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 alpha or opacity of the shadow.
Generated using TypeDoc
Used to customize the appearance of your PaymentSheet