I don't know how @Punit's answer is Accepted.. User wants VISA as name, which I achieved with following:
where info
is object of CardIOCreditCardInfo
received from userDidProvideCreditCardInfo
which is CardIOPaymentViewControllerDelegate
's delegate method.
NSSTring *cardName = [CardIOCreditCardInfo displayStringForCardType:info.cardType usingLanguageOrLocale:@"en_US"];
Since it has public method not instance method
/// Convenience method which returns a card type string suitable for display (e.g. "Visa", "American Express", "JCB", "MasterCard", or "Discover").
/// Where appropriate, this string will be translated into the language specified.
/// @param cardType The card type.
/// @param languageOrLocale See CardIOPaymentViewController.h for a detailed explanation of languageOrLocale.
/// @return Card type string suitable for display.
+ (NSString *)displayStringForCardType:(CardIOCreditCardType)cardType usingLanguageOrLocale:(NSString *)languageOrLocale;