CardNonce

open class CardNonce @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(val string: String, val isDefault: Boolean, val cardType: String, val lastTwo: String, val lastFour: String, val bin: String, val binData: BinData, val authenticationInsight: AuthenticationInsight?, val expirationMonth: String, val expirationYear: String, val cardholderName: String) : PaymentMethodNonce

PaymentMethodNonce representing a credit or debit card.

Constructors

Link copied to clipboard
constructor(string: String, isDefault: Boolean, cardType: String, lastTwo: String, lastFour: String, bin: String, binData: BinData, authenticationInsight: AuthenticationInsight?, expirationMonth: String, expirationYear: String, cardholderName: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Details about the regulatory environment and applicable customer authentication regulation for a potential transaction. You may use this to make an informed decision whether to perform 3D Secure authentication.

Link copied to clipboard
open val bin: String

BIN of the card.

Link copied to clipboard
open val binData: BinData

The BIN data for the card number associated with CardNonce

Link copied to clipboard

The name of the cardholder.

Link copied to clipboard
open val cardType: String

Type of this card (e.g. Visa, MasterCard, American Express)

Link copied to clipboard

The expiration month of the card.

Link copied to clipboard

The expiration year of the card.

Link copied to clipboard
open override val isDefault: Boolean

true if this payment method is the default for the current customer, false otherwise

Link copied to clipboard
open val lastFour: String

Last four digits of the card.

Link copied to clipboard
open val lastTwo: String

Last two digits of the card, intended for display purposes.

Link copied to clipboard
open override val string: String

The nonce generated for this payment method by the Braintree gateway. The nonce will represent this PaymentMethod for the purposes of creating transactions and other monetary actions.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)