question

deepika avatar image
deepika asked Jeffrey Blattman commented

How to decrypt the MSR gift card details using clover devices?

We have semi integration clover application on production.we are now integrating gift card MSR functionality in our application. For card swipe, we are using below code to open clover card process screen and get the encrypted data(track2). we have to process this card information to do payment through third party payment gateways. Can you please provide a way to get decrypted data of gift card using clover card swipe?

final Intent intent = new Intent(Intents.ACTION_SECURE_CARD_DATA); intent.putExtra(Intents.EXTRA_ORDER_ID, orderId); intent.putExtra(Intents.EXTRA_AMOUNT, paymentAmount); intent.putExtra(Intents.EXTRA_CARD_ENTRY_METHODS, Intents.CARD_ENTRY_METHOD_ALL); intent.putExtra(Intents.EXTRA_TRANSACTION_TYPE, Intents.TRANSACTION_TYPE_CARD_DATA); startActivityForResult(intent, MSR_CARDS_ACTIVITY_REQUEST_CODE);

Please give your suggestions so that we can do this functionality ASAP. @Sam@justin.a@keithryanwong@Greg@Jeffrey BlattmanRaymond Lee ♦♦Mark Mullan ♦
Payments
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 Jeffrey Blattman commented
You cannot decrypt that data. If you want to get unencrypted card data back using this method, there are two possibilites:

1. If the data on the card is not financial format, it'll be return unencrypted. This is not your case those as it is encrypted.

2. Otherwise, the gift card needs to BIN whitelisted. This means we mark the BIN (first 6 digits) of the PAN allowing such card data to be returned unencrypted.

For (2), please contact appmarketbusiness@clover.com.
5 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.

deepika avatar image deepika commented ·
Thank you @Jeffrey Blattman . Yes, we have BIN whitelisted gift cards. please explain, how we can get the unencrypted details?
0 Likes 0 ·
Bryanne Vega avatar image Bryanne Vega deepika commented ·

Just to confirm, you already contacted dev@clover.com in order to have your cards whitelisted?

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

If you are getting encrypted data back from ACTION_SECURE_CARD_DATA, then your BIN is not whitelisted. You should double check with your contact at Clover to ensure the BINs made it on whatever environment you are testing.

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

Hi @Jeffrey Blattman. Thanks for your suggestion. Yes, now we are able to get the card information from whitelisted BIN range on clover mini and clover flex. but here we observed that on clover station v4.2.2 (C100) we have same encrypted card details from ACTION_SECURE_CARD_DATA. its working on clover mini and clover flex but not on clover station. Can you help us on this issue?

@Sam@justin.a@keithryanwong@GregRaymond Lee ♦♦Mark Mullan ♦

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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

Welcome to the
Clover Developer Community