CardKYCFields class

Payment card information for KYC verification.

Contains credit or debit card details for payment processing. All field keys are prefixed with "card."

Example:

CardKYCFields card = CardKYCFields();
card.number = "4111111111111111";
card.expirationDate = "29-11"; // YY-MM format (e.g., November 2029)
card.cvc = "123";
card.holderName = "John Doe";
card.network = "Visa";
card.postalCode = "12345";
card.countryCode = "US";

// Or use tokenized card
card.token = "tok_visa_1234";

Security note:

  • Consider using tokenized cards when possible
  • Never log or store full card numbers
  • Follow PCI DSS compliance requirements

Constructors

CardKYCFields()

Properties

address ↔ String?
Entire address (country, state, postal code, street address, etc...) as a multi-line string
getter/setter pair
city ↔ String?
Name of city/town
getter/setter pair
countryCode ↔ String?
Billing address country code in ISO 3166-1 alpha-2 code (e.g. US)
getter/setter pair
cvc ↔ String?
CVC number (Digits on the back of the card)
getter/setter pair
expirationDate ↔ String?
Expiration month and year in YY-MM format (e.g. 29-11, November 2029)
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
holderName ↔ String?
Name of the card holder
getter/setter pair
network ↔ String?
Brand of the card/network it operates within (e.g. Visa, Mastercard, AmEx, etc.)
getter/setter pair
number ↔ String?
Card number
getter/setter pair
postalCode ↔ String?
Billing address postal code
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stateOrProvince ↔ String?
Name of state/province/region/prefecture is ISO 3166-2 format
getter/setter pair
token ↔ String?
Token representation of the card in some external payment system (e.g. Stripe)
getter/setter pair

Methods

fields() → Map<String, String>
Converts all card KYC fields to a map for SEP-9 submission.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited