Initialize SDK
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
Last updated
Was this helpful?

