medipass / react-payment-inputs

A React Hook & Container to help with payment card input fields.
https://medipass.github.io/react-payment-inputs
342 stars 62 forks source link

Cvc.length is not limited #20

Open lakesare opened 4 years ago

lakesare commented 4 years ago

I think this line implies that we shouldn't be able to input CVC longer than 4 symbols:

https://github.com/medipass/react-payment-inputs/blob/9bc107985e42cda98c2e17abed781208243498fd/src/usePaymentInputs.js#L324

However, as seen in demos, we can:

https://medipass.github.io/react-payment-inputs/?path=/story/usepaymentinputs--basic-no-styles