Add the In-App-Payments SDK to your mobile development environment.
In-App Payments SDK

Install the In-App Payments SDK

Java (Android)

Add the In-App-Payments SDK to your mobile development environment.

To use the example code in this guide, make sure you have the following information available:

  • Your application ID. Find your application ID on the Credentials page of your Square application in the Developer Dashboard.

    Did you know?

    The In-App Payments SDK is supported in the Square Sandbox.

  1. Add the Square SDK public repository in the build.gradle file for your project.

  2. Add a compile option to support Java version 1.8 in the build.gradle file for your :app module.

  3. Add the In-App Payments SDK dependency to the module build.gradle file.

  4. Update the file in the solution application folder to apply rules to In-App Payment SDK classes:

To configure the In-App Payments SDK, you must set the Square application ID for your application in AndroidManifest.xml. Open the AndroidManifest.xml file for your application Gradle module and add the following XML to set the application ID.


To test an application in the Square Sandbox, set the Developer Dashboard to Sandbox Settings mode before completing the following instructions in this step:

  • Copy your application ID from the Credentials page.

Now that the In-App Payments SDK is installed, follow one of these build guides to add it to your mobile application:

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