EditCard

Additional

Language
Java
Version
V1.0.1 (Nov 30, 2016)
Created
Nov 21, 2016
Updated
Feb 26, 2017 (Retired)
Owner
Morad Edwar (Morxander)
Contributor
Morad Edwar (Morxander)
1
Activity
Badge
Generate
Download
Source code

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