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:- 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.
-
Select the AppchargeiOSConfig file. In the Inspector tab, fill in the required fields:
Field Description Environment The checkout environment. Select Sandbox for testing or Production for live operations. Checkout Public Key The 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 Browser If 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 Options Whether 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 Project Whether to automatically include and sign the Appcharge iOS frameworks in your Xcode project. Associated Domain The 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 viahttps
, and nothttp
.Add URL Schema Whether to enable deeplink support to open the checkout in an embedded browser.