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 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 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
PaymentMethodTypematching the given 3-letter payment method identifier, ornilif the identifier is not recognized.Declaration
Swift
public static func from(identifier: String) -> PaymentMethodType?Parameters
identifierThe 3-letter payment method identifier string.
Return Value
The corresponding
PaymentMethodType, ornilif no match is found. -
Returns the 3-letter payment method identifier
Declaration
Swift
public var identifier: String { get }
View on GitHub