jessepollak / jessepollak/card
Ability to mask CVC number
- Dominant language
- SCSS
- Stars
- 11.7k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice if the library could mask the CVC (CVV) number the same way it can mask the card number.
I am assuming this is not already a feature after looking through the code and trying out a few different ways of specifying the CVC number in the `masks` configuration.
Perhaps something like
....
masks: {
cardNumber: '•', // optional - mask card number
cvcNumber: '•'
}
....
Contributor guide
Research direction
Start by locating the existing card-number masking implementation and the `masks` configuration in the library. Trace how CVC inputs are handled, then verify that the requested configuration masks CVC values without changing other fields and add coverage if the existing test structure identifies a relevant location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend, payments
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100