SavedPayPal

class SavedPayPal(var alias: String, val payPalEmail: String?) : SavedPaymentMethod

This class contains saved PayPal payment method details.

Just like any other SavedPaymentMethod subclass, this class can be used to finalize a payment without user interaction or to display a selection of saved payment methods to the user for fast checkouts.

A SavedPayPal can be created by successfully completing a PayPal payment or with a dedicated registration.

Parameters

alias

Alias for a PayPal account

payPalEmail

PayPal e-mail address. This will be used for displaying purposes.

Constructors

Link copied to clipboard
constructor(alias: String, payPalEmail: String?)

This constructor has to be used to initialize a saved PayPal payment method.

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
open val isValid: Boolean = true

Checks if the saved payment method is valid.

Link copied to clipboard

PayPal e-mail address. This will be used for displaying purposes.

Link copied to clipboard

Payment method type, e.g. Visa.

Functions

Link copied to clipboard
open override fun clone(): SavedPayPal
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun getAccessibilityTitle(context: Context): String

For TalkBack this title is used instead of displayTitle.

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