Your documentation mentions that "by default" it checks to make sure the number is between 12 and 19 digits. See here: https://docs.reactioncommerce.com/reaction-docs/master/payment-packages-authnet
However, this is not the case. In the schema it checks for 12-19 digits.
However, in the method it checks for 14-16 digits.
@zikeji Does this result in an actual problem for you (i.e. rejecting a valid card) or are you just pointing out an inconsistency?
I feel like we need to refactor some of these checks into some common helpers, etc. because I bet this is also inconsistent in other payment methods.
@zenweasel During my testing of the Authorize.net payment gateway it did impact me. The test numbers they give you to test certain API responses all are 13 digits. In addition, a 13 digit Visa is a valid length.
@zikeji Thanks for the feedback. Based on your that bumping up to impact-major
Most helpful comment
I feel like we need to refactor some of these checks into some common helpers, etc. because I bet this is also inconsistent in other payment methods.