Reset the NFC Wallet SDK
Overview
SDK integration
func resetSDK() async {
do {
try await TSHPay.shared.reset()
} catch {
// Handle the error.
}
}Last updated
Was this helpful?
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.
Reset is local only. It does not call any server APIs. Any tokens that already exist on the server side are not deleted.
After you reinitialize the SDK, the wallet ID changes. Tokens created before the reset can become orphan tokens on the server side. They may be deleted when you run Tokenization for a new card (in process called tokens cleanup).
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.
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?
Was this helpful?