medipass / react-payment-inputs

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

Custom card validation not working - cardNumberValidator #96

Open Hemavaan opened 1 year ago

Hemavaan commented 1 year ago

Hi team,

Need your help to enable and validate - UATP card payment type.

I tried to configure custom card validation through cardNumberValidator function.

This function not calling due to utils -> validator.js -> getCardNumberError function -> validateLuhn function is blocked to call the cardNumberValidator function.

Because of this we can't able to add custom card validation.

Could you please help on this ASAP.