Morxander / EditCard

Custom EditText For Android To Enter Credit Card Numbers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EditCard

Android Arsenal

EditCard

Custom EditText For Android To Enter Credit Card Numbers

Download

Download via Gradle:

compile 'morxander.editcard:EditCard:1.0.1'

Usage

<morxander.editcard.EditCard
        android:id="@+id/card"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

In activity class:

EditCard edit_card = (EditCard) findViewById(R.id.card);
edit_card.getCardNumber(); // Get the card number
edit_card.isValid(); // Is the card number valid
edit_card.getCardType(); // Get the card type

For now we only support the following card types :

  • VISA
  • MASTERCARD
  • American Express
  • DISCOVER
  • JCB
  • Discover

License

GNU GENERAL PUBLIC LICENSE 3

About

Custom EditText For Android To Enter Credit Card Numbers

License:GNU General Public License v3.0


Languages

Language:Java 100.0%