question

mseth avatar image
mseth asked mseth commented

Customizing the Extra_Card_Data intent

We have a payment solution for the restaurants. For the restaurant server to sign in to our app they typically use server cards that have the login information on track2 of their cards.

We are using Intents.EXTRA_CARD_DATA to get the track2 data which is working fine.

But at the top of the screen (where they swipe the card) it displays a dollar amount of 0.00. Is there any way to get rid of that and replace it with custom text? That number does not make sense in this context and we would like to make it more intuitive for the servers.
PaymentsClover Flex
10 |2000 characters needed characters left characters exceeded

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

1 Answer

Raymond Lee avatar image
Raymond Lee Deactivated answered mseth commented
Hi @mseth,

Yes, You can put the extra EXTRA_CARD_DATA_MESSAGE in your intent with a String of the message you want to display. It will replace the 0.00 that you saw on the screen. See: https://clover.github.io/clover-android-sdk/com/cl...

Here is sample code of what it should look like:
Intent intent = new Intent(Intents.ACTION_SECURE_CARD_DATA);
intent.putExtra(Intents.EXTRA_TRANSACTION_TYPE, Intents.TRANSACTION_TYPE_CARD_DATA);
intent.putExtra(Intents.EXTRA_CARD_DATA_MESSAGE, "PLEASE SWIPE SERVER CARD");

startActivityForResult(intent, SECURE_CARD_DATA_RESPONSE_CODE);

Hope that helps,

Raymond

1 comment
10 |2000 characters needed characters left characters exceeded

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

That worked, thank you!

1 Like 1 ·

Welcome to the
Clover Developer Community