Accepting test credit card numbers
Do you want some of fake, even invalid credit card numbers to be valid? For example, in the developing phase, you might want the creditCard validator to accept a few of particular card numbers.
Of course, you don't need to modify the source code of creditCard validator and add your own numbers there. FormValidation allows you to do it in a nice way via the Transformer plugin.
By using this option, we transform your test card numbers from an invalid to a valid one.
NoteThe Transformer plugin changes the card numbers for validation process only. When the form is submitted, you get the extract number that is initially provided by the user
Test (invalid) credit card numbers that you want it to be valid:
The following validators might be useful to you.