CardToken class
Constructors
CardToken.new ({required String id , @Default("card") String object , @JsonKey(name: "address_city") String ? addressCity , @JsonKey(name: "address_country") String ? addressCountry , @JsonKey(name: "address_line1") String ? addressLine1 , @JsonKey(name: "address_line1_check") VerificationCheck ? addressLine1Check , @JsonKey(name: "address_line2") String ? addressLine2 , @JsonKey(name: "address_state") String ? addressState , @JsonKey(name: "address_zip") String ? addressZip , @JsonKey(name: "address_zip_check") VerificationCheck ? addressZipCheck , @Default(CardTokenBrand.unknown) CardTokenBrand ? brand , String ? country , String ? currency , @JsonKey(name: "cvc_check") VerificationCheck ? cvcCheck , @JsonKey(name: "dynamic_last4") String ? dynamicLast4 , @JsonKey(name: "exp_month") int ? expMonth , @JsonKey(name: "exp_year") int ? expYear , String ? fingerprint , CardFundingType ? funding , String ? last4 , @Default({}) Map <String , dynamic > metadata , String ? name , @JsonKey(name: "tokenization_method") CardTokenizationMethod ? tokenizationMethod })
const
factory
CardToken.fromJson (Map <String , dynamic > json )
factory
Properties
addressCity
→ String ?
City/District/Suburb/Town/Village.
no setter inherited
addressCountry
→ String ?
Billing address country, if provided when creating card.
no setter inherited
addressLine1
→ String ?
Address line 1 (Street address/PO Box/Company name).
no setter inherited
addressLine1Check
→ VerificationCheck ?
If address_line1 was provided, results of the check:
pass, fail, unavailable, or unchecked.
no setter inherited
addressLine2
→ String ?
Address line 2 (Apartment/Suite/Unit/Building).
no setter inherited
addressState
→ String ?
State/County/Province/Region.
no setter inherited
addressZip
→ String ?
ZIP or postal code.
no setter inherited
addressZipCheck
→ VerificationCheck ?
If address_zip was provided, results of the check:
pass, fail, unavailable, or unchecked.
no setter inherited
brand
→ CardTokenBrand ?
If address_zip was provided, results of the check:
pass, fail, unavailable, or unchecked.
no setter inherited
copyWith
→ $CardTokenCopyWith<CardToken >
Create a copy of CardToken
with the given fields replaced by the non-null parameter values.
no setter inherited
country
→ String ?
Two-letter ISO code representing the country of the card.
You could use this attribute to get a sense of the
international breakdown of cards you’ve collected.
no setter inherited
currency
→ String ?
Three-letter ISO currency code, in lowercase.
Must be a supported currency.
no setter inherited
cvcCheck
→ VerificationCheck ?
If a CVC was provided, results of the check:
pass, fail, unavailable, or unchecked.
A result of unchecked indicates that CVC was provided but hasn’t
been checked yet.
Checks are typically performed when attaching a card to a Customer
object, or when creating a charge. For more details, see
Check if a card is valid without a charge.
https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge
no setter inherited
dynamicLast4
→ String ?
(For tokenized numbers only.)
The last four digits of the device account number.
no setter inherited
expMonth
→ int ?
Two-digit number representing the card’s expiration month.
no setter inherited
expYear
→ int ?
Four-digit number representing the card’s expiration year.
no setter inherited
fingerprint
→ String ?
Uniquely identifies this particular card number.
You can use this attribute to check whether two customers who’ve
signed up with you are using the same card number, for example.
For payment methods that tokenize card information
(Apple Pay, Google Pay), the tokenized number might be provided
instead of the underlying card number.
Starting May 1, 2021, card fingerprint in India for Connect will
change to allow two fingerprints for the same card — one for India and
one for the rest of the world.
no setter inherited
funding
→ CardFundingType ?
Card funding type. Can be credit, debit, prepaid, or unknown.
no setter inherited
hashCode
→ int
The hash code for this object.
no setter inherited
id
→ String
Unique identifier for the object.
no setter inherited
last4
→ String ?
The last four digits of the card.
no setter inherited
metadata
→ Map <String , dynamic >
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object
in a structured forma
no setter inherited
name
→ String ?
Cardholder name.
no setter inherited
object
→ String
String representing the object’s type.
Objects of the same type share the same value.
Value is "card".
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
tokenizationMethod
→ CardTokenizationMethod ?
If the card number is tokenized, this is the method that was used.
Can be android_pay (includes Google Pay), apple_pay, masterpass,
visa_checkout, or null.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson ()
→ Map <String , dynamic >
Serializes this CardToken to a JSON map.
inherited
toString ()
→ String
A string representation of this object.
inherited