CardSystem enum
Payment systems recognised by CloudPayments.
Detection is based on the card's IIN/BIN (the leading digits of the card number) and is purely local — no network call is involved.
Values
- visa → const CardSystem
-
Visa.
const CardSystem('Visa') - masterCard → const CardSystem
-
Mastercard.
const CardSystem('MasterCard') - maestro → const CardSystem
-
Maestro (Mastercard's debit brand).
const CardSystem('Maestro') - mir → const CardSystem
-
МИР — the Russian national payment system.
const CardSystem('MIR') - jcb → const CardSystem
-
JCB.
const CardSystem('JCB') - americanExpress → const CardSystem
-
American Express.
const CardSystem('AmericanExpress') - dinersClub → const CardSystem
-
Diners Club.
const CardSystem('DinersClub') - discover → const CardSystem
-
Discover.
const CardSystem('Discover') - unionPay → const CardSystem
-
China UnionPay.
const CardSystem('UnionPay') - uzCard → const CardSystem
-
UzCard — an Uzbek national payment system.
const CardSystem('UzCard') - humo → const CardSystem
-
Humo — an Uzbek national payment system.
const CardSystem('Humo') - troy → const CardSystem
-
Troy — the Turkish national payment system.
const CardSystem('Troy') - unknown → const CardSystem
-
The card system could not be determined from the given digits.
const CardSystem('Unknown')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wireName → String
-
The name CloudPayments uses for this system in API payloads and reports.
final
Methods
-
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
Static Methods
-
detect(
String digits) → CardSystem -
Detects the payment system from the leading digits of
digits. -
fromWireName(
String? name) → CardSystem -
Parses a CardSystem from the value CloudPayments returns in
Model.CardType. Unrecognised values map to CardSystem.unknown.
Constants
-
values
→ const List<
CardSystem> - A constant List of the values in this enum, in order of their declaration.