Initialize SDK
Initialize the ClearentWrapper with your configuration and set the delegate.
let encryptionKeyData = Crypto.SHA256hash(
data: "some_secret_here".data(using: .utf8)!
)
let config = ClearentWrapperConfiguration(
baseURL: baseURL,
apiKey: apiKey,
publicKey: nil,
offlineModeEncryptionKeyData: encryptionKeyData
)
ClearentWrapper.shared.initialize(with: config)
ClearentWrapper.shared.delegate = selfImplement the delegate
Conform to ClearentWrapperProtocol to receive:
Status updates
User actions
Transaction results
Errors and notifications
Last updated
Was this helpful?

