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

Card holder name restriction #1975

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

Conversation

katina-anachkova
Copy link
Contributor

Closes #1761

Motivation and context

Enhance the component's usability for individuals with varying levels of technical expertise by adding an onInput handler that removes non-letters, non-spaces, and non-hyphens, and replaces consecutive hyphens/spaces with a single character.

Screenshots:

Before After
image image

Testing

Steps to test

  1. Go to a donation page
  2. Choose card payment
  3. Try adding numeric/other symbols in the name input field. Only Letters, spacing and hyphens should be allowed

Tested with different name combinations in regex 101 tool.

Copy link

❌ Not all tests have run for this PR. Please add the run tests label to trigger them.

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.

Disable the possibilty to write numbers in the card holder name during the payments
1 participant