-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added verve brand #145
base: master
Are you sure you want to change the base?
Added verve brand #145
Conversation
- Added Card Number Pattern for verve cards.
@@ -180,7 +180,7 @@ class _CreditCardFormState extends State<CreditCardForm> { | |||
late CreditCardModel creditCardModel; | |||
|
|||
final MaskedTextController _cardNumberController = | |||
MaskedTextController(mask: '0000 0000 0000 0000'); | |||
MaskedTextController(mask: '0000 0000 0000 0000 000'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes should be based on the brand, as most of the brands support only 16 digits.
@@ -281,7 +281,7 @@ class _CreditCardFormState extends State<CreditCardForm> { | |||
validator: widget.cardNumberValidator ?? | |||
(String? value) { | |||
// Validate less that 13 digits +3 white spaces | |||
if (value!.isEmpty || value.length < 16) { | |||
if (value!.isEmpty || value.length < 19) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes should be based on the brand, as most of the brands support only 16 digits.
No description provided.