SavedGooglePay

This class contains saved Google Pay payment method details.

Like any other SavedPaymentMethod subclass, it can be used to initiate follow-up payments with the same method. Note: Using this class will still present the Google Pay sheet to the user when they are in session.

A SavedGooglePay object can be created by successfully completing a Google Pay payment or with a dedicated registration.

Properties

Link copied to clipboard
open var alias: String

The alias that can be used to process recurring payments or fast checkouts.

Link copied to clipboard
Link copied to clipboard
open val isValid: Boolean = true

Checks if the saved payment method is valid.

Link copied to clipboard

The last 4 digits of the real card number used in the transaction. Note: This information may not be available for all card types.

Link copied to clipboard

Payment method type, e.g. Visa.

Functions

Link copied to clipboard
open override fun clone(): SavedGooglePay
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

For TalkBack this title is used instead of getDisplayTitle.

Link copied to clipboard
open fun getDisplayTitle(context: Context): String

A human readable title.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun toJson(): String

Returns a JSON string representation of this saved payment method object to be deserialized with create.

Link copied to clipboard
open override fun toString(): String