juspay / card-validator

Card validation helpers for payment forms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update Diners Club International Regex

nileshr opened this issue · comments

Some of the Diners club international cards are not getting identified. The regex could be updated from /^36/ to /^3([689]|09)/ ( Source - https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_.28IIN.29 )

Hi, thanks for pointing out. If you can make the change, please send a pull request. Else, kindly wait for a day for us to make the change.

@ramanathanrv Any updates on this?