Appearance
class Appearance
Appearance configuration for the Payment Element.
Types
Link copied to clipboard
class PrimaryButton
Configures the appearance of the primary button.
Link copied to clipboard
Color modes available for the Payment Element.
Link copied to clipboard
class Typography
Typography used for Payment Element text.
Functions
Link copied to clipboard
fun colorsDark(colors: PaymentElement.Configuration.Appearance.Colors): PaymentElement.Configuration.Appearance
Sets the colors used in dark mode.
Link copied to clipboard
fun colorsLight(colors: PaymentElement.Configuration.Appearance.Colors): PaymentElement.Configuration.Appearance
Sets the colors used in light mode.
Link copied to clipboard
fun embeddedAppearance(embeddedAppearance: PaymentElement.Configuration.Appearance.Embedded): PaymentElement.Configuration.Appearance
Sets the appearance of embedded payment method rows.
Link copied to clipboard
fun formInsetValues(insets: PaymentElement.Configuration.Appearance.Insets): PaymentElement.Configuration.Appearance
Sets the insets used by forms.
Link copied to clipboard
fun primaryButton(primaryButton: PaymentElement.Configuration.Appearance.PrimaryButton): PaymentElement.Configuration.Appearance
Sets the appearance of the primary button.
Link copied to clipboard
fun shapes(shapes: PaymentElement.Configuration.Appearance.Shapes): PaymentElement.Configuration.Appearance
Sets the shape of inputs, tabs, and other components.
Link copied to clipboard
fun themeMode(themeMode: PaymentElement.Configuration.Appearance.ThemeMode): PaymentElement.Configuration.Appearance
Sets the color mode used by the Payment Element.
Link copied to clipboard
fun typography(typography: PaymentElement.Configuration.Appearance.Typography): PaymentElement.Configuration.Appearance
Sets the typography used for text.