dbachelder / CreditCardEntry

Smooth UI for Credit Card Entry on Android device, regex check for supported credit card types and luhn check. Inspired by Square credit card entry interface
MIT License
503 stars 166 forks source link

Please provide 'cardInvalid(...)' method in CardValidCallback interface #54

Open Mr-Goldberg opened 7 years ago

Mr-Goldberg commented 7 years ago

In my code I need to enable/disable 'save card' button dynamically. Case: I can disable 'save card' button by default, and then enable it when card became valid (from callback). But if user will edit the card info then - it may became invalid, and there is no way to know about it, while user types. I think I can do it in 'hacky' way, but no reason for this :) Please provide such callback.