CardholderData

Static Methods

Method Name Description
forACH(data, supported_cardtypes): CardholderData Create instance for use with ACH.
forCreditCard(data, supported_cardtypes): CardholderData Create instance for use with credit card.
getNumberType(number: string): string Get credit card type.
validNumber(value: string): boolean Validates a credit card number.
validExpirationDate(value: string): boolean Validates an expiration date.
validCvv(value: string, number_type: string): boolean Validates a cvv.

Instance Methods

Method Name Description
fill(data: object) Fill cardholder data.
isACH(): boolean Check for ACH data.
isCreditCard(): boolean Check for credit card data.
requireACH(): this Check for required ACH data.
requireCreditCard(): this Check for required credit card data.

Properties

Property Name
name
address_line1
address_line2
address_city
address_state
address_zip
address_country
number
cvv
exp
exp_month
exp_year
transit_number
institution_number
routing_number
account_number
account_type
account_holder_name
account_holder_type