This article describes how to set up the iOS Payment Links SDK for Unity.

Step 1 | Import the SDK

To import the iOS Payment Links SDK for Unity, open your project and either:
  • Double-click the package file, or
  • Drag and drop the package file into your Assets folder.

Step 2 | Configure the SDK

To configure the SDK:
  1. Go to Assets > Resources > Appcharge. You should see a file named AppchargeiOSConfig. If the file doesn’t exist, right-click the Appcharge folder and select Create > Appcharge > Configuration > AppchargeiOSConfig.
  2. Select the AppchargeiOSConfig file. In the Inspector tab, fill in the required fields: URL Scheme
    FieldDescription
    EnvironmentThe checkout environment. Select Sandbox for testing or Production for live operations.
    Checkout Public KeyThe checkout public key, located in the Publisher Dashboard. In the sidebar menu, click Settings, then select the Integration tab. Copy the Checkout Public Key value.
    Use Internal BrowserIf enabled, the checkout will open using SFSafariViewController. If disabled, a default browser will be used to open the checkout. For more information, see Sell Outside IAP.
    Enable Integration OptionsWhether the SDK automatically applies required Xcode configurations during the build. If disabled, the following options will be turned off and you’ll need to configure them manually in Xcode.
    Add Framework To XCode ProjectWhether to automatically include and sign the Appcharge iOS frameworks in your Xcode project.
    Associated DomainThe domain used to redirect players back to your game, without the HTTP protocol. For example, my.best-app.com. Note that the domain must be served via https, and not http.
    Add URL SchemaWhether to enable deeplink support to open the checkout in an embedded browser.