Card

data class Card @JvmOverloads constructor(var merchantAccountId: String? = null, var isAuthenticationInsightRequested: Boolean = false, var shouldValidate: Boolean = false, var cardholderName: String? = null, var number: String? = null, var company: String? = null, var countryCode: String? = null, var cvv: String? = null, var expirationMonth: String? = null, var expirationYear: String? = null, var extendedAddress: String? = null, var firstName: String? = null, var lastName: String? = null, var locality: String? = null, var postalCode: String? = null, var region: String? = null, var streetAddress: String? = null, var sessionId: String? = null, var source: String? = DEFAULT_SOURCE, var integration: IntegrationType? = IntegrationType.CUSTOM) : PaymentMethod, Parcelable

Use to construct a card tokenization request.

Constructors

Link copied to clipboard
constructor(merchantAccountId: String? = null, isAuthenticationInsightRequested: Boolean = false, shouldValidate: Boolean = false, cardholderName: String? = null, number: String? = null, company: String? = null, countryCode: String? = null, cvv: String? = null, expirationMonth: String? = null, expirationYear: String? = null, extendedAddress: String? = null, firstName: String? = null, lastName: String? = null, locality: String? = null, postalCode: String? = null, region: String? = null, streetAddress: String? = null, sessionId: String? = null, source: String? = DEFAULT_SOURCE, integration: IntegrationType? = IntegrationType.CUSTOM)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val apiPath: String
Link copied to clipboard

Name on the card.

Link copied to clipboard

Company associated with the card.

Link copied to clipboard

The ISO 3166-1 alpha-3 country code specified in the card's billing address.

Link copied to clipboard
var cvv: String?

The card verification code (like CVV or CID). If you wish to create a CVV-only payment method nonce to verify a card already stored in your Vault, omit all other properties to only collect CVV.

Link copied to clipboard

The expiration month of the card.

Link copied to clipboard

The expiration year of the card.

Link copied to clipboard

The extended address of the card.

Link copied to clipboard

First name on the card.

Link copied to clipboard
open override var integration: IntegrationType?

The integration method associated with the tokenization call for analytics use. Defaults to custom and does not need to ever be set.

Link copied to clipboard

If authentication insight will be requested.

Link copied to clipboard

Last name on the card.

Link copied to clipboard

Locality of the card.

Link copied to clipboard

The merchant account id used to generate the authentication insight.

Link copied to clipboard

The card number.

Link copied to clipboard

Postal code of the card.

Link copied to clipboard

Region of the card.

Link copied to clipboard
open override var sessionId: String?

The session id associated with this request. The session is a uuid. This field is automatically set at the point of tokenization, and any previous values ignored.

Link copied to clipboard

Flag to denote if the associated {@link Card} will be validated. Defaults to false.

Link copied to clipboard
open override var source: String?

The source associated with the tokenization call for analytics use. Set automatically.

Link copied to clipboard

Street address of the card.

Functions

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