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)

Properties

Link copied to clipboard
open override val appearance: Appearance? = null
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)