PaymentMethodTypeMapper
@objc(DTPaymentMethodTypeMapper)
public class PaymentMethodTypeMapper : NSObject
Provides Objective-C–compatible access to DTPaymentMethodType conversions.
Swift users should use PaymentMethodType.fromIdentifier(identifier:) and the identifier
property directly.
-
Returns the
DTPaymentMethodTyperaw value for a given 3-letter payment method identifier.Declaration
Swift
@objc public static func toType(identifier: String) -> NSNumber?Parameters
identifierThe 3-letter payment method identifier string
Return Value
An
NSNumberwrapping the matchingDTPaymentMethodTyperaw value, ornilif the identifier is not recognized. -
Returns the 3-letter payment method identifier based on the
DTPaymentMethodType.Declaration
Swift
@objc public static func toIdentifier(type: PaymentMethodType) -> StringParameters
typeThe payment method type, e.g.
DTPaymentMethodTypeVisaReturn Value
The 3-letter payment method identifier
View on GitHub