SavedBoncard

open class SavedBoncard(var alias: String, val maskedCardNumber: String?, val boncardType: BoncardType) : SavedPaymentMethod

This class contains saved Boncard 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 SavedBoncard can be created by successfully completing a Boncard payment or with a dedicated registration.

Parameters

alias

Alias for a Boncard

maskedCardNumber

The masked card number you can use to display that specific card in your app.

boncardType

The specific subtype of card, which affects the title and logo that is displayed for the card.

Constructors

Link copied to clipboard
constructor(alias: String, maskedCardNumber: String?, boncardType: BoncardType)

This constructor has to be used to initialize a saved Boncard 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
Link copied to clipboard
open val isValid: Boolean = true

Checks if the saved payment method is valid.

Link copied to clipboard
Link copied to clipboard

Payment method type, e.g. Visa.

Functions

Link copied to clipboard
open override fun clone(): SavedBoncard
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 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