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}.
Constants
- CVC_LENGTH_AMERICAN_EXPRESS → const int
- CVC_LENGTH_COMMON → const int
- FUNDING_CREDIT → const String
- FUNDING_DEBIT → const String
- FUNDING_PREPAID → const String
- FUNDING_UNKNOWN → const String
- MAX_LENGTH_AMERICAN_EXPRESS → const int
- MAX_LENGTH_DINERS_CLUB → const int
- MAX_LENGTH_STANDARD → const int
-
PREFIXES_AMERICAN_EXPRESS
→ const List<
String> - Based on http://en.wikipedia.org/wiki/Bank_card_number#Issuer_identification_number_.28IIN.29
-
PREFIXES_DINERS_CLUB
→ const List<
String> -
PREFIXES_DISCOVER
→ const List<
String> -
PREFIXES_JCB
→ const List<
String> -
PREFIXES_MASTERCARD
→ const List<
String> -
PREFIXES_UNIONPAY
→ const List<
String> -
PREFIXES_VISA
→ const List<
String>