iOS app integration

Get it on the App Store

Messages

The client app must implement a mechanism to send messages using URL schemes and to receive the result in a custom URI callback.

Callback activity

The card terminal app will deliver the URL to your app by calling your app delegate’s application(_:open:options:) method. The following code should be added to the method in order to parse the contents of the URL and take the appropriate actions. To ensure the URL is parsed correctly, use NSURLComponents APIs to extract the components.

 func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {

         guard let components = NSURLComponents(url: url, resolvingAgainstBaseURL: true),
             let path = components.path,
             let params = components.queryItems else {
                 print("Invalid URL or path missing")
                 return false
         }
         print("Path: \(path)\nComponents: \(params)")

         //MARK: - Do any additional actions after parsing the data
         return true
  }

  func performInterAppRequest(request: String){
         guard let url = URL(string: request) else { return } // url with constructed parameters
         UIApplication.shared.open(url) { (result) in
             print("InterApp Request URL:\n", url)
             if result {
                 // The URL was delivered successfully!
             }
         }
     }

Get Support

If you have any questions about our solutions, or questions about how to integrate with our solutions, please refer to our Get Support page.