SavedPostFinancePay

class SavedPostFinancePay(var alias: String, val maskedAccountNumber: String?) : SavedPaymentMethod

This class contains saved PostFinance Pay payment method details.

Like any other SavedPaymentMethod subclass, this class can be used to pay with a previously registered payment method or to present a list of saved payment methods to the user for fast checkouts.

A SavedPostFinancePay object can be created either by successfully completing a PostFinance Pay payment or through a dedicated registration process.

Constructors

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

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

Masked PostFinance account number (IBAN). 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(): SavedPostFinancePay
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 getInternalDisplayTitle.

Link copied to clipboard
open override 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