Tutelar API Stack
  • Introduction
  • Fraud Detection Monitoring
    • Create Transaction
    • Notify Transaction
    • Chargeback Transaction
    • Refund Transaction
  • MERCHANT ONBOARDING
    • Client Types
    • Entity Types
    • MCC Lists
    • Reseller Lists
    • Onboarding
    • Onboarding - KYC
    • Onboarding - Web Crawling
    • Onboarding - AML
    • Onboarding - NDI
  • KYC Verification
    • Document Verification
      • 🇮🇳India
        • Aadhaar Card
        • Pan Card
        • Driving License
        • GST Number
        • Passport
        • Shop License
        • FSSAI
        • MCA
        • Voter Id
        • Pan Gst Link
        • ROC IEC
        • DIN
        • Udyam Aadhaar
        • Pan Card Comprehensive
        • Name Compare
        • GST Advanced
        • Aadhar with Otp
        • Phone Name Attributes
        • Pan Card Lite
    • Document Extraction
      • 🇮🇳India
        • Aadhaar Card
        • Pan Card
        • Driving License
        • Voter Id
        • GST Certificate
        • Passport
    • Assets Verification
      • 🇮🇳India
        • Bank Account
        • Bank Verfication Pennyless
        • Bank Account Details Using VPA
        • Mobile to UPI Advance
        • Mobile to UPI Basic
        • Mobile To UAN
        • E-Challan Details
        • Vehicle RC Lite
        • Vehicle RC
        • UAN Advance
    • Face and Document Verification
      • Onsite Verification
      • Face Match
      • Selfie Validation
  • DATA REPOSITORY
    • Search API
  • Business Profile
    • Lookups
      • Email
      • Phone
      • BIN
      • IP
    • Credibility Check
    • Corporate Check
      • Comprehensive Details
    • AML And PEP
    • Court And FIR
    • Cybersafe
  • AML SEARCH
    • Search
    • Search Details
    • Search Details PDF
    • Decision Making
    • Decision Details
  • WEB CRAWLING
    • Initiate Crawl API
    • Status Check API
    • Result API
    • List API
  • Disputes
    • Create Dispute
    • Update Dispute
    • Dispute Details
    • Dispute Level Change
    • Dispute Won
    • Dispute Loss
    • Dispute Reopen
  • MOBILE SDK INTEGRATIONS
    • Android SDK
    • Flutter SDK
    • iOS SDK
  • CLIENT SIDE INTEGRATIONS
    • Javascript Integration
    • Tutelar Error Code
Powered by GitBook
On this page
  • Features
  • Requirements
  • iOS
  • Step - 1 - Add Dependency
  • Step - 2 - Import SDK
  • Step - 3 - Initialize SDK
  • Step - 4 - Get Device Details
  • Step - 5 - Implement Delegate Method
  • Step - 6- Add info.plist File
  • Sample Device Fingerprint Data
  1. MOBILE SDK INTEGRATIONS

iOS SDK

The Tutelar iOS SDK allows you to build delightful experiences in your native iOS

PreviousFlutter SDKNextJavascript Integration

Last updated 1 year ago

Features

Simplified Security: We make it simple for you to collect sensitive data such as device information of users.

Requirements

iOS

This framework requires several configurations to be able to work on iOS. Please make sure you have those requirement:

● Compatible with apps targeting iOS 13.0 and above.

● Use Swift version 5.0 and above

Step - 1 - Add Dependency

In the cocoapods section: section of your find

TUTELAR and Integrate current pod version.

ex:
pod 'Tutelar', '~> 0.0.3'

Step - 2 - Import SDK

import Tutelar

Step - 3 - Initialize SDK

To initialize the SDK add the below line of code with the public key you retrieved from Tutelar merchant panel. If you don’t have a public key create new one.

let tutelar = Fingerprint (key: " Your Unique Public Key ")

Step - 4 - Get Device Details

Use the below line of code to get device details using button action

tutelar.getDeviceDetails(withDelegate: self )

Step - 5 - Implement Delegate Method

Use the below code to obtain the Device result.

extension ViewController: FingerprintDelegate{

 func onFailure(message: String) {
      
  // Failure Callback.
    }
    
  func onSuccess(data: String) {

         // Success Callback
    }
}

Step - 6- Add info.plist File

Optional : Use the below lines of code to get current location.

<key>NSLocationWhenInUseUsageDescription</key>
<string>Require to get user location</string>

Sample Device Fingerprint Data

{
"customer": {
"phone": "9042850403",
"name": "Nathan ",
"email": "nathan@gmail.com"
},
"deviceFingerPrint": {
"time": {
"timezone": "Asia\/Kolkata",
"timestamp": 1687255693166
},
"status": true,
"ipAddress": "103.42.72.86",
"device": {
"data_roaming": true,
"root_status": false,
"deviceMemory": "3660 mb",
"location_info": {
"latitude": "",
"longitude": "",
"address": ""
},
"ip_address": "172.18.24.6",
"microPhoneHardware": {
"hasMicrophone": true
},
"displayResolution": "375.0 x 812.0",
"brand": "Apple",
"deviceCharging": true,
"model": "iPhone",
"is_emulator": false,
"timezone": "Asia\/Kolkata",
"screenHeight": 812,
"deviceTypes": {
"isMac": false,
"isDesktop": false,
"isiPad": false,
"isiPod": false,
"isSmartTV": false,
"isMobile": false,
"isTablet": false,
"isiPhone": true,
"isLinux64": false,
"isLinux": false,
"isWindows": false
},
"videoHardware": {
"hasWebCam": true
},
"is_real_device": true,
"country_info": {
"country": "IN",
"display_country": "India",
"iso_3_country": "IN"
},
"system_storage": {
"total": "119.09 GB",
"used": "63.48 GB"
},
"platform": "iOS",
"external_storage": "",
"screen_brightness": 0.36149275302886963,
"touchSupport": true,
"board": "",
"network_type": "CTRadioAccessTechnologyLTE",
"language_info": {
"iso_3_language": "en",
"language": "en-IN",
"display_language": "English"
},
"deviceId": "6C75365E-077F-4694-9E26-5F49D122B1E8",
"os": "iOS 15.6.1",
"batteryLevel": "0.98",
"type": "",
"kernel_version": "21.6.0",
"devicePixelRatio": "375.0 x 812.0",
"timestamp": 1687255693.1973171,
"memory_information": {
"total_memory": "3660 mb",
"available_memory": "",
"used_memory": ""
},
"screenWidth": 375,
"manufacturer": "Apple",
"screen_size": "5.5",
"audioHardware": {
"hasSpeakers": true
},
"data_enabled": true
}
},
"shipping": {
"postalCode": "600398",
"address": "12b North street CIT ",
"state": "Tamilnadu ",
"method": "Delivery",
"name": "Nathan",
"phone": "9042858384",
"country": "India",
"email": "nathan@gamil.com",
"city": "Chennai ",
"period": "5"
},
"productDescription": "Television ",
"amount": "1",
"billing": {
"state": "Tamilnadu ",
"address": "12b North street CIT ",
"city": "Chennai ",
"country": "India",
"postalCode": "600398",
"name": "Nathan "
},
"merchant": {
"id": "TUTGOIBQAGO00001"
},
"orderId": 1687255693314.2939,
"mode": "test",
"productType": "TV",
“currencyCode”: “INR”,
"paymentData": {
"bin": "4242 4242 4242 4242",
"name": "Nathan",
"tokenHash": "ryvyIqXLkCYQxScj"
},
"paymentInstrument": "card"
}

https://cocoapods.org/pods/tutelar