Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Reset the NFC Wallet SDK

Overview

Resetting the NFC Wallet SDK deletes all data stored by the SDK on the device.

This includes items managed by the SDK, such as digital cards and payment credentials.

After a reset, the SDK assigns a new wallet ID at the next initialization. See Retrieve the wallet ID.

After you reset the NFC Wallet SDK, run Enroll wallet before any new Tokenization.

SDK integration

Call TSHPay.shared.reset() to delete all data stored by the NFC Wallet SDK.

func resetSDK() async {
    do {
        try await TSHPay.shared.reset()
    } catch {
        // Handle the error.
    }
}

Last updated

Was this helpful?