question

ondrej avatar image
ondrej asked ondrej commented

Access to the magnetic stripe reader?

Hello, is there some access possible to the magnetic stripe reader to read for example gift cards in a custom application?

Thank you, Ondrej

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered ondrej commented

Technically, you can read gift cards, if the gift card is white listed. You must go through the Secure Payments app. Your app is not allowed to access the card reader directly. Take a look at the ACTION_SECURE_CARD_DATA action in the Clover Android SDK. Basically, you start an activity for result and have the card data returned in the result.

There may be better ways to go about this however. Can you give more detail on what you are trying to achieve?

As to whether we would be able to white list the specific card, I'll ask someone else to chime in.

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ondrej avatar image ondrej commented ·

Hi @jeff ,

I am creating an application that will need to process gift and loyalty cards and would like the ability to read card account numbers encoded on magnetic stripe.

As for specific cards, for example let's say that we will need to read cards with IDs starting with :

  • 7775
  • 7776
  • 7777

    But the exact list will not be known during the distribution of the application. Maybe later we will need to read some more cards - it depends on the merchant's requirements. Do you think, that it will be possible later to add some more card prefixes?

Thank you, Ondrej

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

The BIN white list cannot be that dynamic as it's implemented now. Our secure card reader needs to know about the BINs ahead of time to know if it's okay to return the data unencrypted. That list has to come from our servers for security purposes. Further, to register your app to process the gift card, you must register statically for the BINs of interest.

0 Likes 0 ·

Welcome to the
Clover Developer Community