STPCardBrandUtilities

public class STPCardBrandUtilities : NSObject

Contains STPStringFromCardBrand

  • Returns a string representation for the provided card brand; i.e. STPCardBrandUtilities.stringFrom(brand: .visa) == "Visa".

    Declaration

    Swift

    @objc(stringFromCardBrand:)
    public static func stringFrom(_ brand: STPCardBrand) -> String?

    Parameters

    brand

    the brand you want to convert to a string

    Return Value

    A string representing the brand, suitable for displaying to a user.