TSHPay
public final actor TSHPay
The TSHPay SDK actor class.
-
Indicate the device is eligibility to perform digitze card.
See moreDeclaration
Swift
public struct DeviceEligibility : Sendable -
Verification methods available to the user.
See moreDeclaration
Swift
public enum CardHolderVerificationMethod : Sendable -
Indicates whether the device is set up with passcode or biometrics.
See moreDeclaration
Swift
public enum DeviceOwnerAuthentication : CaseIterable, Sendable -
PList Configurations available for use.
See moreDeclaration
Swift
public enum PlistConfigurationType : Sendable -
Singleton instance of
TSHPay.Declaration
Swift
public static let shared: TSHPay -
deviceEligibilityAsynchronousCheck device eligibility.
Declaration
Swift
public var deviceEligibility: DeviceEligibility { get async } -
The protocol contains all functions to the app integrators to interact with
SecureLog.Declaration
Swift
public static var secureLog: SecureLog { get } -
Retrieves the wallet ID.
If a wallet has not been created, a new wallet will be generated, and its wallet ID will be returned.
Declaration
Swift
nonisolated public static var walletID: String { get }Return Value
A
Stringrepresenting the wallet ID. -
Configure
TSHPayand its required services.Throws:
clientError(_:)if a PList error occurs.deviceEnvironmentUnsafe(_:)if the device environment is unsafe.configurationErrorif there is an error with the configuration.
Declaration
Swift
public func configure( withVerificationMethod verificationMethod: CardHolderVerificationMethod, plistConfiguration: PlistConfigurationType = .default ) async throws -
reset()AsynchronousAsynchronous method to reset
TSHPay.Throws:
reset(_:)if there is an error on reset.
Declaration
Swift
public func reset() async throws -
TSHPay Actor Reference