PaymentSheet
data class PaymentSheet(val layout: PaymentMethodsLayoutType = PaymentMethodsLayoutType.TAB, val googlePayButton: PaymentElementConfiguration.GooglePayButton = GooglePayButton(), val checkoutButton: PaymentElementConfiguration.CheckoutButton = CheckoutButton(), val appearance: Appearance? = null) : PaymentElementConfiguration, Parcelable
Configuration for payment sheet with multiple payment methods. Can display in Tab or Accordion layout.
Parameters
layout
The layout type - TAB or ACCORDION
googlePayButton
Google Pay button configuration
checkoutButton
Checkout button configuration
appearance
Payment UI appearance configuration (theme color and dark mode)
Constructors
Link copied to clipboard
constructor(layout: PaymentMethodsLayoutType = PaymentMethodsLayoutType.TAB, googlePayButton: PaymentElementConfiguration.GooglePayButton = GooglePayButton(), checkoutButton: PaymentElementConfiguration.CheckoutButton = CheckoutButton(), appearance: Appearance? = null)