GooglePayButton

data class GooglePayButton(val showsAsPrimaryButton: Boolean = true, val buttonType: ButtonType? = null) : Parcelable

Google Pay button configuration. Controls how the Google Pay button is displayed in the payment sheet.

Constructors

Link copied to clipboard
constructor(showsAsPrimaryButton: Boolean = true, buttonType: ButtonType? = null)

Properties

Link copied to clipboard
val buttonType: ButtonType? = null

The Google Pay button type (BUY, SUBSCRIBE, etc.). When null, defaults to BUY for one-off payments, SUBSCRIBE for recurring payments.

Link copied to clipboard

If true, Google Pay is shown as a standalone button on top of the payment sheet. If false, Google Pay appears as a regular payment method option.

Functions

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