Skip to main content
This article explains how to configure and initialize and configure the Payment Links SDK for iOS.

Configure the SDK

The Payment Links SDK for iOS exposes a ACConfigModel. Create an instance with the following arguments:

Initialize the SDK

To initialize the SDK, call the method below using the ACConfigModel. We recommend doing this on application load, ideally within the viewDidLoad lifecycle method:

Re-initialize the SDK

Re-initialize the SDK when you change between sandbox and production environments:

Lock checkout orientation

You can force the Checkout page to display in portrait orientation, even if the app is currently in landscape mode.

Enable debug mode

Enable debug mode to view detailed logs from all parts of the SDK. This provides deeper visibility into the SDK’s behavior: