PaymentMethodNonce

abstract class PaymentMethodNonce @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(val string: String, val isDefault: Boolean) : Parcelable

Base class representing a method of payment for a customer. PaymentMethodNonce represents the common interface of all payment method nonces, and can be handled by a server interchangeably.

Constructors

Link copied to clipboard
constructor(string: String, isDefault: Boolean)

Properties

Link copied to clipboard
open val isDefault: Boolean

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

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