Add the In-App-Payments SDK to your mobile development environment.
To use the example code in this guide, make sure you have your Square 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.
Step 2: Configure the In-App Payments SDK
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.
Important
To test an application in the Square Sandbox, set the Developer Dashboard to Sandbox Settings mode before completing the following instructions in this step:
Step 3: Set application permissions
If AndroidManifest.xml does not already have application permissions set, add the following two permissions:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Now that the In-App Payments SDK is installed, follow one of these build guides to add it to your mobile application: