4

I have used card.io to scan my credit card in my android application. I got the scanned number but it shows •••• •••• •••• 2157.

Now I need to exact card number so that I can pass that number on payment detail form.

CreditCard scanResult = data.getParcelableExtra(CardIOActivity.EXTRA_SCAN_RESULT);
strCardNumber = scanResult.getRedactedCardNumber()
Lucifer
  • 29,392
  • 25
  • 90
  • 143
Kishan sharma
  • 701
  • 1
  • 6
  • 20

1 Answers1

4

Replace this line

scanResult.getRedactedCardNumber() 

with

scanResult.getFormattedCardNumber() 

and you will get the readable card number.

Shashi
  • 76
  • 5