TSHPay

public final actor TSHPay

The TSHPay SDK actor class.

  • Indicate the device is eligibility to perform digitze card.

    See more

    Declaration

    Swift

    public struct DeviceEligibility : Sendable
  • Verification methods available to the user.

    See more

    Declaration

    Swift

    public enum CardHolderVerificationMethod : Sendable
  • Indicates whether the device is set up with passcode or biometrics.

    See more

    Declaration

    Swift

    public enum DeviceOwnerAuthentication : CaseIterable, Sendable
  • PList Configurations available for use.

    See more

    Declaration

    Swift

    public enum PlistConfigurationType : Sendable
  • Singleton instance of TSHPay.

    Declaration

    Swift

    public static let shared: TSHPay
  • deviceEligibility Asynchronous

    Check 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 String representing the wallet ID.

  • Configure TSHPay and its required services.

    Throws:

    Declaration

    Swift

    public func configure(
        withVerificationMethod verificationMethod: CardHolderVerificationMethod,
        plistConfiguration: PlistConfigurationType = .default
    ) async throws
  • reset() Asynchronous

    Asynchronous method to reset TSHPay.

    Throws:

    Declaration

    Swift

    public func reset() async throws
  • TSH Pay Errors.

    See more

    Declaration

    Swift

    public enum Error : Sendable, Equatable
    extension TSHPay.Error: Error