PaymentMethodType

@objc(DTPaymentMethodType)
public enum PaymentMethodType : Int, CaseIterable

The payment method used during the transaction.

  • Visa payment method

    Declaration

    Swift

    case Visa
  • MasterCard payment method

    Declaration

    Swift

    case MasterCard
  • Diners Club payment method

    Declaration

    Swift

    case DinersClub
  • American Express payment method

    Declaration

    Swift

    case AmericanExpress
  • JCB

    JCB payment method

    Declaration

    Swift

    case JCB
  • Discover payment method

    Declaration

    Swift

    case Discover
  • UATP payment method

    Declaration

    Swift

    case UATP
  • Hipercard payment method

    Declaration

    Swift

    case Hipercard
  • Dankort payment method

    Declaration

    Swift

    case Dankort
  • Maestro payment method

    Declaration

    Swift

    case Maestro
  • China Union Pay payment method

    Declaration

    Swift

    case ChinaUnionPay
  • Elo

    Elo card payment method

    Declaration

    Swift

    case Elo
  • PayPal payment method

    Declaration

    Swift

    case PayPal
  • Apple Pay payment method

    Declaration

    Swift

    case ApplePay
  • Twint payment method

    Declaration

    Swift

    case Twint
  • PostFinance Pay payment method

    Declaration

    Swift

    case PostFinancePay
  • Returns the PaymentMethodType matching the given 3-letter payment method identifier, or nil if the identifier is not recognized.

    Declaration

    Swift

    public static func from(identifier: String) -> PaymentMethodType?

    Parameters

    identifier

    The 3-letter payment method identifier string.

    Return Value

    The corresponding PaymentMethodType, or nil if no match is found.

  • Returns the 3-letter payment method identifier

    Declaration

    Swift

    public var identifier: String { get }