Device signals for server to server fraud prevention
When performing server to server payments using the Judopay API, you may wish to identify the device at the time of payment. To obtain the device signals necessary for fraud prevention, use DeviceDNA to obtain the encrypted signals which will be passed in the clientDetails JSON field of the request body:
swift
deviceDNA.getDeviceSignals { (device, error) in
if let device = device as [String : String]?
let deviceId = device["deviceIdentifier"];
let key = device["key"];
let value = device["value"];
}
}
DeviceDNA
The DeviceDNA iOS library allows you to identify devices using the Judopay Genome service
Getting Started
Step 1: Initialize DeviceDNA
1. Add DeviceDNA as a dependency
CocoaPods
CocoaPods is a dependency manager for Cocoa projects.
Podfile
to integrate it into your Xcode project:.xcworkspace
file not not the projects.xcodeproj
file2. Initialize DeviceDNA with your Judo account details:
swift
obj-c
swift
obj-c
Step 2: Identify a device
swift
obj-c
Step 3: Check the device profile
swift
obj-c
Device signals for server to server fraud prevention
When performing server to server payments using the Judopay API, you may wish to identify the device at the time of payment. To obtain the device signals necessary for fraud prevention, use DeviceDNA to obtain the encrypted signals which will be passed in the
clientDetails
JSON field of the request body:swift
obj-c