Skip to main content
This article explains how to integrate Unity Payment Links with the iOS platform.
On some Unity versions, the Back to Game button won’t return players to the game after checkout. See Fix deeplinks on affected Unity versions to check whether your version is affected, and if so, complete the Info.plist workaround.
To integrate with iOS:
  1. Go to the Build Settings window and make sure your Unity project is set to iOS. Once set, the AppchargeConfig file updates to display iOS-specific configuration options. iOS Build Settings
  2. Your configuration settings should look like this: iOS Configurations
    By default, the configuration file is preconfigured for integration. However, you must set the required Environment and Checkout Public Key fields under Publisher Info.

    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 iOS frameworks, entitlements, and URL schemes during the Xcode 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.
    Disabling Enable Integration Options prevents the automatic configuration required for the Checkout SDK from functioning correctly. If disabled, you must manually configure each required file in Xcode.

    Enable iOS Framework Integration

    By default, the SDK configures Swift libraries, runpaths, signing, and adds the Appcharge XCFramework during the Xcode build. Use the options below to skip parts of that setup if you manage them yourself.

    Enable iOS Entitlements Integration

    By default, the SDK creates or updates the entitlements file and associated domains during the Xcode build. Use the options below to skip parts of that setup if you manage them yourself.

    Enable iOS URL Scheme Integration

    By default, the SDK adds the Appcharge URL scheme entries to Info.plist during the Xcode build. Use the options below to skip parts of that setup if you manage them yourself.
Some Unity versions add a UIApplicationSceneManifest key to Info.plist. This prevents Application.deepLinkActivated, which the Payment Links SDK uses to return players to the game after checkout. Known affected Unity versions:
  • 2022.3.75f1
  • 6000.0.68f1
  • 6000.0.69f1
  • 6000.3.10f1
  • 6000.4.0b11
  • 6000.5.0a7
  • 6000.6.0a1
If you’re using one of these versions, after each iOS build open Info.plist in the generated Xcode project and remove the UIApplicationSceneManifest key and its contents. Unity regenerates Info.plist on each build, so repeat this workaround after every iOS build.
Unity 6000.3.78f1 or later includes the official fix. You can upgrade instead of applying the Info.plist workaround. Test the upgrade thoroughly before releasing.