Skip to main content

Installation

Swift Package Manager
  1. Add the following repository URL
  1. Select your desired version or branch
  2. Click Add Package
Or you can also add Imprint as a dependency to your `Package.swift`:

Implementation

  1. Import the SDK
Import the SDK in your view controllers or wherever needed:
  1. Configuration
Create an instance of ImprintConfiguration with your client_secret and environment, then assign additional optional fields as needed.
  1. Define the Completion Handler
Define the completion handler  to manage the terminal states when the application flow ends.
  1. Start the Application flow
Once you’ve configured the , initiate the application flow by calling  from your view controller.
  • viewController: The view controller from which the application flow will be presented
  • configuration: The previously created  object containing your API key and completion handler

Complete Code Example

Check out our complete demo project at Imprint-Tech/imprint-sdk-ios
Request Parameters Response Data ErrorCode (Enum) Application States