StripeCard class

Constructors

StripeCard({String? number, String? cvc, int? expMonth, int? expYear, String? name, String? addressLine1, String? addressLine1Check, String? addressLine2, String? addressCity, String? addressState, String? addressZip, String? addressZipCheck, String? addressCountry, String? last4, CardBrand brand = CardBrand.unknown, String? funding, String? fingerprint, String? country, String? currency, String? customerId, String? cvcCheck, String? id})

Properties

addressCity String?
getter/setter pair
addressCountry String?
getter/setter pair
addressLine1 String?
getter/setter pair
addressLine1Check String?
getter/setter pair
addressLine2 String?
getter/setter pair
addressState String?
getter/setter pair
addressZip String?
getter/setter pair
addressZipCheck String?
getter/setter pair
brand CardBrand?
no setter
brandImage AssetImage?
no setter
country String?
getter/setter pair
currency String?
getter/setter pair
customerId String?
getter/setter pair
cvc String?
getter/setter pair
cvcCheck String?
getter/setter pair
expMonth int?
getter/setter pair
expYear int?
getter/setter pair
fingerprint String?
getter/setter pair
funding String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
last4 String?
getter/setter pair
name String?
getter/setter pair
number String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asCardImage() String?
asCardMask() String?
isEmpty() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPaymentMethod() PaymentMethodData
toString() String
A string representation of this object.
inherited
validateCard() bool
Checks whether {@code this} represents a valid card.
validateCVC() bool
Checks whether or not the {@link #cvc} field is valid.
validateDate() bool
Checks whether or not the {@link #expMonth} and {@link #expYear} fields represent a valid expiry date.
validateNumber() bool
Checks whether or not the {@link #number} field is valid.

Operators

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

Static Methods

asCardBrand(CardBrand? possibleCardType) CardBrand?
Converts an unchecked String value to a {@link CardBrand} or {@code null}.
asFundingType(String? possibleFundingType) String?
Converts an unchecked String value to a {@link FundingType} or {@code null}.