ChargeDetailState

public enum ChargeDetailState : Hashable

Enum describing the state of the transaction charge detail. Historically all transaction charges would complete immediately, resulting in a CLEARED state, however some transactions, particularly those backed by ACH funding sources can take some time to resolve so will begin as PENDING and may result in failure.

  • Funding transaction initiated

    Declaration

    Swift

    case pending
  • Funding transaction cleared

    Declaration

    Swift

    case cleared
  • Funding transaction failed due to insufficient funds

    Declaration

    Swift

    case insufficientFunds
  • Funding transaction failed for other reasons

    Declaration

    Swift

    case failed
  • Backwards compatibility guard for catching new enum values added by the service - check you have the latest version of the SDK

    Declaration

    Swift

    case unknown(String)

Lifecycle

  • Initialize an instance of ChargeDetailState.

    Declaration

    Swift

    public init(_ state: String)