# iOS SDK

iOS SDK is engineered to help you deliver a secure, efficient, and user-friendly experience for Strong Customer Authentication (SCA), the onboarding process, and digital wallet tokenization with Apple Pay.

To start with the iOS SDK, please refer to the README.md file in our GitHub repository: https://github.com/intergiro/intergiro-ios-sdk (opens new window), where you'll find the details on the following things:

  • System requirements
  • Installation
  • Configuration

# iOS SDK usage example





 

import IntergiroSDK

Intergiro.setPublicKey("<PUBLIC_KEY>")

Intergiro.launch(token: "YW55IGNhcm5hbCBwbGVhc3Vy", callback: completion)

A call of the launch() method of iOS SDK with the token during one of the supported flows (SCA, onboarding, Apple Pay) opens a UI provided by Intergiro where your customers can go through the chosen flow.

Depending on what happened within the SDK UI, the callback may return a payload or an error. For a list of possible error codes, see the IntergiroError enum.

When the flow was successful, the callback returns:

{
  "status": "approved"
}

When the operation was not successful for any reason, the callback returns:

{
  "status": "error"
}