Skip to main content
This article explains how to integrate Unity Payment Links with the Android platform. To integrate with Android:
  1. Go to the Build Settings window and make sure your Unity project is set to Android. Once set, the AppchargeConfig file updates to display Android-specific configuration options. Android Build Settings
  2. Click Player Settings > Publisher Settings, and scroll to the Build section.
  3. Expose (enable) the following android plugin files or the build process will be passed without changes:
    • Custom Main Manifest (AndroidManifest.xml)
    • Custom Main Gradle Template (mainTemplate.gradle)
    • Custom Gradle Properties Template (gradleTemplate.properties)
    Android Editor Configurations
  4. Your configuration settings should look like this: Android Configurations

    Publisher Info

    These settings can also be changed at runtime, but doing so requires re-initializing the SDK.

    Configuration Settings

    Integration Settings

    Enables automatic integration of required Android dependencies and manifest entries during the build process.
    Use the following options to exclude parts of the build process. By doing so, you may need to implement part of the process manually.

    Exclude Appcharge Activity

    By default, the SDK adds the Appcharge Checkout activity, its exported attribute, and the deeplink intent filter to AndroidManifest.xml. Use the options below to skip parts of that setup if you manage them in your own manifest.
    • If Exclude Checkout Service isn’t checked, the SDK automatically adds the required permissions and the CheckoutService declaration to your manifest file without duplicating existing permissions. If Exclude Checkout Service is checked, the SDK doesn’t modify your manifest file.
    • If you’re upgrading an existing integration that already includes the CheckoutService declaration, update android:foregroundServiceType from dataSync to shortService in your manifest.

    Example Manifest

    If the options above are not excluded (disabled), your final Manifest will look like this:
    The intent-filter includes a scheme "acnative-{IDENTIFIER}". Change the {IDENTIFIER} to the last sequence of your package name. For example, if your package name is com.appcharge.mysupergame, the identifier will be mysupergame.This name must be lowercase with no spaces, according to the Android code style guide.