iOS Payment Links
Initialize the iOS Mobile Checkout SDK
Configure and initialize the SDK:
Configure the SDK
The iOS Mobile Checkout SDK exposes a ConfigModel
. Create an instance with the following arguments:
Argument | Type | Required? | Description |
---|---|---|---|
checkoutPublicKey | string | Yes | 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. |
environment | string | Yes | The checkout environment. One of: - sandbox : For testing.- production : For live operations. |
Initialize the SDK
To initialize the SDK, call the method below on application load or as soon as it’s ready.
We recommend calling it within the viewDidLoad
lifecycle method, using the ConfigModel
instance: