PaymentError

public enum PaymentError : Error
extension PaymentError: LocalizedError

Errors that occur when processing Payments

  • An error with the payment

    Declaration

    Swift

    case processingError(traceId: String)
  • Confirmation is required (2-Factor), a confirmation key is associated with this case

    Declaration

    Swift

    case confirmationRequired(String, traceId: String)
  • The confirmation of payment failed. An implementation specific error is associated with this case

    Declaration

    Swift

    case confirmationFailed(Error)
  • An error thrown when payment is attempted with the unsupported payment

    Declaration

    Swift

    case unsupportedPaymentType
  • Declaration

    Swift

    public var errorDescription: String? { get }