PaymentSheet

constructor(layout: PaymentMethodsLayoutType = PaymentMethodsLayoutType.TAB, googlePayButton: PaymentElementConfiguration.GooglePayButton = GooglePayButton(), checkoutButton: PaymentElementConfiguration.CheckoutButton = CheckoutButton(), appearance: Appearance? = null)

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)