PaymentMethodTypeMapper
public class PaymentMethodTypeMapper: NSObjectUse this class to map the payment method identifiers from Datatrans to the PaymentMethodType.
- 
                  
                  This function returns the PaymentMethodTypebased on the Datatrans payment method identifier.DeclarationSwift public static func toType(identifier: String) -> PaymentMethodType?ParametersidentifierThe payment method identifier from Datatrans Return ValueThe payment method type, e.g. Visa, or nil if identifieris invalid
- 
                  
                  This function returns the PaymentMethodTypebased on the Datatrans payment method identifier.This is for use from Objective-C only. The returned NSNumbercontains therawValueof aDTPaymentMethodType.DeclarationSwift public static func toTypeObjc(identifier: String) -> NSNumber?ParametersidentifierThe payment method identifier from Datatrans Return ValueThe payment method type, e.g. Visa, or nil if identifieris invalid
- 
                  
                  This function returns the payment method identifier based on the PaymentMethodType.DeclarationSwift public static func toIdentifier(type: PaymentMethodType) -> StringParameterstypeThe payment method type, e.g. Visa Return ValueThe payment method identifier 
 View on GitHub
View on GitHub