Credit Card
constructor(nameOnCard: String?, cardNumber: String?, lastFourDigits: String?, cardType: String?, expiration: ExpirationDate?, cvv: String?, requireCvv: Boolean?, billingAddress: Address?, isDefault: Boolean?)(source)
Constructor for creating a CreditCard with primary details and billing address.
Parameters
name On Card
The name on the card.
card Number
The full card number.
last Four Digits
The last four digits of the card number.
card Type
The type of card.
expiration
The expiration date.
cvv
The CVV.
require Cvv
Whether CVV is required.
billing Address
The billing address.
is Default
Whether it's the default card.
constructor(nameOnCard: String?, lastFourDigits: String?, cardType: String?, expiration: ExpirationDate?, cvv: String? = null, requireCvv: Boolean? = null, token: String?, gatewayToken: String? = null)(source)
Constructor for creating a CreditCard using tokens.
Parameters
name On Card
The name on the card.
last Four Digits
The last four digits of the card number.
card Type
The type of card.
expiration
The expiration date.
cvv
The CVV (optional).
require Cvv
Whether CVV is required (optional).
token
The payment token.
gateway Token
The gateway token (optional).