Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

DiekoMA
Copy link

@DiekoMA DiekoMA commented Sep 4, 2023

No description provided.

- 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');
Copy link
Collaborator

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) {
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants