Step 2: Configure the sample app
Download the sample app from GitHub and follow the steps below to configure it for your environment.
- Download and open the In-App Payments SDK sample app for Android in Android Studio.
in-app-payments-android-quickstart/app/src/main, open AndroidManifest.xml and set your Square Application ID from Step 1:
<meta-data android:name="sqip.SQUARE_APPLICATION_ID" android:value="REPLACE_ME"/>
app/src/main/java/com/example/supercookie, open ConfigHelper.java and replace the value of the static
String LOCATION_IDin line 10 with your Location ID from Step 1:
public static final String SQUARE_LOCATION_ID_FOR_GOOGLE_PAY = "REPLACE_ME";
- Download the In-App Payments SDK sample app for iOS.
- Open the
InAppPaymentsSample.xcworkspaceXcode workspace. DO NOT use the project file.
- In the
InAppPaymentsproject, open the General tab for your app target and change the
Bundleidentifier to a unique string. We recommend appending
.YOUR_NAMEto the existing ID.
Constants.swift, and replace
APPLICATION_IDwith your Square Application ID from Step 1.