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

Enhance cardholder name validation #134

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MrLightful
Copy link

The cardholder name is in fact should have a very limited max length.
Although it differs per issuer, it should be mostly covered by the limit of 24.
For example, Stripe own issued cards have this limit (see more).
This is important, because some acquirers will trigger a fraud detection if the cardholder name doesn't match exactly as on the card (incl. abbreviation due to this max length).


  • Default max length to 24
  • Accept custom max length

@MrLightful MrLightful requested a review from a team as a code owner January 14, 2025 13:37
@ibooker
Copy link
Contributor

ibooker commented Jan 14, 2025

Do you have any documentation from payment card brands regarding your assertion about max length for names?
24 characters (total) seems quite short, especially for those with hyphenated last names.

Visa Checkout, for example, has limits of 24 characters for first name and last name (each).

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.

2 participants