Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 = self

Implement the delegate

Conform to ClearentWrapperProtocol to receive:

  • Status updates

  • User actions

  • Transaction results

  • Errors and notifications

Last updated

Was this helpful?