• Home
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • App Market Developer Platform
  • Clover GO
  • Ideas & Feedback
  • Semi-Integration
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
Skip to main content
  • Create
    • Ask a question
    • Post an idea
    • App Market Developer Platform
    • Clover GO
    • Ideas & Feedback
    • Semi-Integration
    • Topics
    • Questions
    • Articles
    • Ideas
  • Sign in
  • Home
  • Semi-Integration
This question was closed Apr 02 at 09:52 PM by Clover_Community_Bot for the following reason: automated

question

mseth avatar image
mseth asked · Feb 06, 2018 at 03:16 PM

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
Comment
0
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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 answered · Feb 12, 2018 at 11:08 PM ACCEPTED ANSWER Locked
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 · Share
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

mseth avatar image mseth · Feb 13, 2018 at 05:40 PM

That worked, thank you!

1 · ·

Welcome to the
Clover Developer Community

question details

3 People are following this question.

mseth follows this question rachel follows this question raymond.lee follows this question
Answers Subscribe to Answers Answers and Comments Subscribe to Comments and Answers

Related Questions

Adding additonal details to the payment receipt 2 Answers

Employee and Merchant name printed on receipt 1 Answer

Lock the device to our app, and make it the default for certain employee logins 1 Answer

How to stop 'Loyalty platform' app from trying to install every time a sale is performed (using Payment Connector). 1 Answer

Updating payment with external payment ID 2 Answers

Answerhub Logo
  • About
  • ·
  • FAQ
  • ·
  • Privacy
  • ·
  • Copyright © 2010-19 DZone, Inc.