medipass / react-payment-inputs

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

Fix errors for card number and expiry date #24

Closed thepenskefile closed 4 years ago

thepenskefile commented 4 years ago

Following on from https://github.com/medipass/react-payment-inputs/pull/23, just adding the validator functions as arguments to getExpiryDateError and getCardNumberError