Closed ThibaultKlein closed 8 years ago
Hey,
It should be possible to just use NumberInputTextField
for that.
Another option might be to subclass CardTextField
and override the moveCardNumberOut
method (currently only available on branch chore/number_animation_access
, PR pending) to call super. moveCardNumberOut
only when a certain card type has been detected (or any other condition you might have for this). Also you'd have to handle the validation result accordingly (accept invalid expiration date and cvc).
That makes sense but it seems a little bit "tricky", if possible that would be great to build this feature, or provide some documentation in the README on how to achieve this.
I see that especially hiding the CVC might be useful to have. I just created PR #63 which tackles this issue by adding an option to make the expiry and/or cvc required.
Hi,
Would it be possible to handle card types that don't handle expiration date and CVC? So only the card number field displays and validates, the rest is ignored.
Thanks!