-
Go to the Build Settings window and make sure your Unity project is set to iOS. Once set, the
AppchargeConfigfile updates to display iOS-specific configuration options.
-
Your configuration settings should look like this:
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.Property Value Description Environment EnumSets the checkout environment. Use Sandboxfor testing andProductionfor live payments.Checkout Public Key StringDefines the checkout public key. You can find it by going to the Publisher Dashboard → Settings → Integration. Auto Integration Settings
Property Value Description Portrait Orientation Lock BooleanForce the internal browser to open in portrait mode even if the application is set to landscape.
Note: You can update this property programmatically before launching the checkout.Add Framework To XCode Project BooleanAutomatically includes and signs the Appcharge iOS frameworks in your Xcode project. Associated Domain BooleanSpecifies the domain used to redirect players back to your game (without the HTTP protocol). Example: my.best-app.com. The domain must be served via https, not http.Add URL Schema BooleanEnables deeplink support to open the checkout in an embedded browser. General Auto Integration Settings
Property Value Description Enable Integration Options BooleanDetermines whether the SDK automatically applies required Xcode configurations during build. If disabled, you’ll need to configure them manually in Xcode. Use Internal Browser BooleanIf enabled, the checkout opens using SFSafariViewController. If disabled, the default browser will be used. See Sell Outside IAP for more info.
Note: You can update this property programmatically before launching the checkout.Enable Debug Mode BooleanWhen enabled, prints a summary of automatic integration changes after the build completes.
