OPPCybersourceDeviceFingerprint
@objc
public class OPPCybersourceDeviceFingerprint : NSObject, OPPDeviceFingerprint
Class to collect a Cybersource device fingerprint for a transaction and attach it to the transaction’s payment parameters.
Device profiling relies on the optional profiling libraries being linked into the app. When those libraries are unavailable or the checkout is not configured for device profiling, the profiling methods finish with an error.
-
Collects the Cybersource device fingerprint for the given transaction and attaches it to the transaction’s payment parameters.
Declaration
Swift
public func setDeviceFingerprint(_ transaction: OPPTransaction, provider: OPPPaymentProvider, completionHandler: @escaping (OPPTransaction, NSError?) -> Void)Parameters
transactionThe transaction whose payment parameters the device fingerprint is added to.
providerThe payment provider used to request the checkout information that configures device profiling.
completionHandlerA block executed when profiling finishes. On success it receives the updated
OPPTransactionand anilerror; on failure it receives the original transaction and anNSErrordescribing the reason. -
Collects the Cybersource device fingerprint for the given transaction and attaches it to the transaction’s payment parameters.
Declaration
Swift
public func setDeviceFingerprint(_ transaction: OPPTransaction, provider: OPPPaymentProvider) async throws -> OPPTransactionParameters
transactionThe transaction whose payment parameters the device fingerprint is added to.
providerThe payment provider used to request the checkout information that configures device profiling.
ThrowsAn
NSErrorwith codeOPPErrorCodeDeviceFingerprintwhen the profiling libraries are unavailable or the checkout is not configured for device profiling.Return Value
The same
OPPTransaction, with the device fingerprint added to its payment parameters when profiling succeeds.
OPPCybersourceDeviceFingerprint Class Reference