mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-30 14:57:53 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
29 lines
817 B
Objective-C
Executable File
29 lines
817 B
Objective-C
Executable File
//
|
|
// NSString+Stripe_CardBrands.m
|
|
// Stripe
|
|
//
|
|
// Created by Jack Flintermann on 1/15/16.
|
|
// Copyright © 2016 Stripe, Inc. All rights reserved.
|
|
//
|
|
|
|
#import "NSString+Stripe_CardBrands.h"
|
|
|
|
@implementation NSString (Stripe_CardBrands)
|
|
|
|
+ (nonnull instancetype)stp_stringWithCardBrand:(STPCardBrand)brand {
|
|
switch (brand) {
|
|
case STPCardBrandAmex: return @"American Express";
|
|
case STPCardBrandDinersClub: return @"Diners Club";
|
|
case STPCardBrandDiscover: return @"Discover";
|
|
case STPCardBrandJCB: return @"JCB";
|
|
case STPCardBrandMasterCard: return @"MasterCard";
|
|
case STPCardBrandUnknown: return @"Unknown";
|
|
case STPCardBrandVisa: return @"Visa";
|
|
case STPCardBrandOther: return @"Other";
|
|
}
|
|
}
|
|
|
|
@end
|
|
|
|
void linkNSStringCardBrandsCategory(void){}
|