Connect the Reader SDK to a Square Contactless Reader to accept chip and tap payments.
Reader SDK

Connect a Contactless Reader

Java (Android)

Before you start Permalink Get a link to this section

You need to install and configure the Reader SDK.

Did you know?

If you are using a Magstripe Reader, you do not need to write explicit code to connect the Reader. If you are using a Contactless and Chip Reader, you must add code to handle pairing.

Step 1: Launch the Card Reader flow Permalink Get a link to this section

Add code to your checkout activity to display a button that launches the Square Card Reader settings flow by calling ReaderManager#startReaderSettingsActivity() and passing in the activity.

Step 2: Add a Reader Manager callback Permalink Get a link to this section

Add a callback (onReaderSettingsResult()) to the Reader Manager in the onCreate() method of your checkout activity using ReaderManager.addReaderSettingsActivityCallback.

Step 3: Handle the Reader Settings result Permalink Get a link to this section

Implement the onReaderSettingsResult() method by adding code to respond to the pairing result.

Note

The result object provided to ReaderSettingsActivityCallback.onResult() does not contain a success value. It only contains a ResultError object in the case of an error.

Step 4: Update onDestroy Permalink Get a link to this section

Add code to clear the Reader settings callback reference in your onDestroy() method to avoid memory leaks.

If you need more assistance, contact Developer Support or ask for help in the Developer Forums.