flutter_stripe library

Classes

CardNumberFormatter
Customer
CustomerSession
ShippingInformation
Source
Stripe
StripeCard
Token

Constants

LENGTH_AMERICAN_EXPRESS → const int
15
LENGTH_COMMON_CARD → const int
16
LENGTH_DINERS_CLUB → const int
14
MAX_LENGTH_AMEX_DINERS → const int
17
MAX_LENGTH_COMMON → const int
19

Functions

getLengthForBrand(String cardBrand) → int
getPossibleCardType(String cardNumber, { bool shouldNormalize: true }) → String
isValidCardLength(String cardNumber, { String cardBrand }) → bool
Checks to see whether the input number is of the correct length, given the assumed brand of the card. This function does not perform a Luhn check. [...]
isValidCardNumber(String cardNumber) → bool
Checks the input string to see whether or not it is a valid card number, possibly with groupings separated by spaces or hyphens. [...]
isValidLuhnNumber(String cardNumber) → bool
Checks the input string to see whether or not it is a valid Luhn number. [...]
separateCardNumberGroups(String spacelessCardNumber, String brand) → List<String>
Separates a card number according to the brand requirements, including prefixes of card numbers, so that the groups can be easily displayed if the user is typing them in. Note that this does not verify that the card number is valid, or even that it is a number. [...]