Package-level declarations

Classes for adding Google Pay to your app.

Types

Link copied to clipboard
class GooglePayButton @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : ConstraintLayout

Convenience view that wraps Google's PayButton

Link copied to clipboard

An enum representing different visual styles available for a Google Pay button

Link copied to clipboard

An enum representing different types of Google Pay buttons that can be used Values map directly to Google's ButtonType

Link copied to clipboard

Enum representing valid checkout option and price status combinations, as defined by Google. For more details, see the totalPriceStatus and checkoutOption properties of Google's TransactionInfo object.

Link copied to clipboard
data class GooglePayConfig @JvmOverloads constructor(val environment: GooglePayEnvironment, val companyName: String, val companyCountryCode: String = "US", val existingPaymentMethodRequired: Boolean = false, val emailRequired: Boolean = false, val phoneNumberRequired: Boolean = false, val fullNameRequired: Boolean = false, val fullBillingAddressRequired: Boolean = false, val currencyCode: CurrencyCode = CurrencyCode.USD) : Parcelable

Google Pay Configuration class

Link copied to clipboard

Enum for determining what environment Google Pay will use

Link copied to clipboard

An enum representing types of Google Pay Errors

Link copied to clipboard

An exception having to do with Google Pay payments

Link copied to clipboard

A drop-in class that presents a Google Pay sheet to collect a customer's payment details. When successful, will return an IPaymentMethod via GooglePayResult.Completed.paymentMethod

Link copied to clipboard
data class GooglePayLineItem(val label: String, val price: Int, val type: GooglePayLineItemType, val status: GooglePayLineItemStatus = GooglePayLineItemStatus.Final) : Parcelable

Represents a line item to be displayed in the Google Pay sheet.

Link copied to clipboard

Represents the status of a line item

Link copied to clipboard

Represents the type of line item to be displayed in the Google Pay sheet.

Link copied to clipboard

Callback to know when Google Pay is ready

Link copied to clipboard

Result class for generating payment methods via Google Pay

Link copied to clipboard

Callback for Google Pay results

Link copied to clipboard

Interface for mocking/testing purposes