Skip to content

Conversation

@DiekoMA
Copy link

@DiekoMA DiekoMA commented Sep 4, 2023

No description provided.

- Added Card Number Pattern for verve cards.

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.

(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