-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate to a different validation library #75
Comments
@gilbarbara, what do you think? I'm able to help with this. |
Hey @cassiocardoso I don't think this library works without brand identification and formatting (we don't do validation per se since we don't control the form itself). So I think the initial effort should be to find a new library that handles that. Or fork the |
This library has no purpose if it can't identify the brand and format the number/CVC and I'd rather deprecate and archive it. Payment has support for 19 characters for Visa numbers. What else do you need? |
@dlong500 But yeah, Payment is really dead. We'll try to find a replacement. |
@gilbarbara Sorry, I didn't realize how much it was being used for credit card type identification. I was only thinking of the validation part and looking at the unresolved issues/pull requests on the payment library. My fear given the evolving credit card ecosystem is a bunch of edge case problems cropping up. Maybe https://github.com/braintree/credit-card-type could potentially be a replacement? It seems relatively mature and under active development. |
It appears that the
payment
library has been abandoned (no updates in almost three years), and there have been some changes with things like Visa cards that can have up to 19 characters. Either the validation library needs to be replaced with something else or removed entirely.My recommendation would be to remove the built-in validation and just provide some links in the documentation to a few validation libraries along with some demo code on basic usage. This way the dependency on an outdated library can be removed and make the resulting package smaller. I don't have a specific validation library in mind so I can't recommend one over another.
The text was updated successfully, but these errors were encountered: