braintree / android-card-form

A ready-made card form layout that can be included in your Android app, making it easy to accept credit and debit cards.
MIT License
366 stars 128 forks source link

Update CardType.validate to also check relaxed prefixes #48

Closed demerino closed 6 years ago

demerino commented 6 years ago

Fixes the issue were CardType.validate failed for Maestro numbers starting with a relaxed prefix.

Add test to check the validate method for all sample card numbers in CardTypeTest.java