3

I have just integrated the card.io SDK with my app, I just wanted to save scanned credit card image to show them later in my app, just like other wallet apps do. Is there any way?

asked Nov 7, 2012 at 7:35
1
  • Did you find a way to save the scanned image? If so please share the answer Commented Mar 3, 2017 at 7:31

2 Answers 2

5

Josh from card.io here. card.io is open source, so you could dig around and figure out how to get the image out.

However, it is hidden by default for good reasons. One is user privacy. Another is PCI compliance--the CVV2 is located on the front of AmEx cards and storing the CVV2 (anywhere, secure or not) is not allowed.

answered Nov 7, 2012 at 17:56
Sign up to request clarification or add additional context in comments.

7 Comments

Thanks Josh, but lemon.com's wallet app is showing card in deck after verifying. So, can you suggest how I can achieve behavior like that?
@FaisalBasra Lemon has a special deal with us; they're grandfathered in. I definitely understand your desire for this, and we may expose it in the future. Sorry that it is not available for you now.
Josh, is there any chance that you can actually return like the top 1/3rd of the image or so? that would be such a great addition. most of the time that is the part of the card that gives enough information about which card it is. (you may need to blur the CVV on the amex cards tho.) Thanks.
@JoshBleecherSnyder are there any changes according to this question: can i get scanned image?
@JoshBleecherSnyder Have been there any changes for this on the iOS SDK ?
|
0

Its not supported in the card.io code but if you really need it you can add following code in onActivityResult of CardIOActivity.java

 /* added image response */
 Intent origIntent = getIntent();
 Log.d(TAG, "[IMGCAP] Return image on scan request");
 if (origIntent.getBooleanExtra(EXTRA_RETURN_CARD_IMAGE, false)
 && mOverlay != null && mOverlay.getBitmap() != null) {
 ByteArrayOutputStream scaledCardBytes = new ByteArrayOutputStream();
 Log.d(TAG, "[IMGCAP] Attempting return of image");
 mOverlay.getBitmap().compress(Bitmap.CompressFormat.JPEG, 80, scaledCardBytes);
 data.putExtra(EXTRA_CAPTURED_CARD_IMAGE, scaledCardBytes.toByteArray());
 }
 Log.d(TAG, "[IMGCAP] Set result with return image");
 /************************************/
 setResultAndFinish(resultCode, data);

Just before you see call to send back result of activity. You can receive in in the calling activity. But as mentioned in above answers its not recommended to capture card image. For non financial card you can call only detect and suppress scan, you will get image for that if you enable EXTRA_RETURN_CARD_IMAGE.

answered Aug 20, 2015 at 6:18

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.