braintree / braintree-web

A suite of tools for integrating Braintree in the browser
https://developer.paypal.com/braintree/docs/start/hello-client/javascript/v3
MIT License
444 stars 134 forks source link

isPotenitallyValid should be false when Cardholder name begins with a number #634

Open cmacdonnacha opened 2 years ago

cmacdonnacha commented 2 years ago

General information

Issue description

isPotenitallyValid should be false when Cardholder name begins with a number. Just like when '0' is entered into the credit card field. The field has no potential to be valid from this point so isPotenitallyValid should be set to false.

image

image

hollabaq86 commented 2 years ago

👋 @cmacdonnacha thanks for reaching out. You raise an interesting use case that we need to carefully consider. Although I can see us changing this behavior, we have to do a little research to make sure that cardholders can't actually set their names to include numbers. Additionally, this could be a breaking change to what we deem "potentially valid" and not necessarily a fix in buggy behavior. I've updated the labels on this issue so that we take this feedback into consideration for the next major version,