We have some users who are unable to select their credit card's expiration date through ExpirationDateDialog - in case the expiration date is >10 years in the future. Meanwhile, the corresponding client-side validator technically allows for 20 years (see com.braintreepayments.cardform.utils.DateValidator.MAXIMUM_VALID_YEAR_DIFFERENCE)
Possible fix:
remove hard-coded magic number 10 in com.braintreepayments.cardform.view.ExpirationDateDialog.java:L91
replace with reference to MAXIMUM_VALID_YEAR_DIFFERENCE in DateValidator, change its visibility to public
We have some users who are unable to select their credit card's expiration date through
ExpirationDateDialog
- in case the expiration date is >10 years in the future. Meanwhile, the corresponding client-side validator technically allows for 20 years (seecom.braintreepayments.cardform.utils.DateValidator.MAXIMUM_VALID_YEAR_DIFFERENCE
)Possible fix:
10
incom.braintreepayments.cardform.view.ExpirationDateDialog.java:L91
MAXIMUM_VALID_YEAR_DIFFERENCE
in DateValidator, change its visibility to public