STPImageLibrary
@interface STPImageLibrary : NSObject
This class lets you access card icons used by the Stripe SDK. All icons are 32 x 20 points.
-
An icon representing Apple Pay.
Declaration
Objective-C
+ (nonnull UIImage *)applePayCardImage;
Swift
class func applePayCardImage() -> UIImage
-
An icon representing American Express.
Declaration
Objective-C
+ (nonnull UIImage *)amexCardImage;
Swift
class func amexCardImage() -> UIImage
-
An icon representing Diners Club.
Declaration
Objective-C
+ (nonnull UIImage *)dinersClubCardImage;
Swift
class func dinersClubCardImage() -> UIImage
-
An icon representing Discover.
Declaration
Objective-C
+ (nonnull UIImage *)discoverCardImage;
Swift
class func discoverCardImage() -> UIImage
-
An icon representing JCB.
Declaration
Objective-C
+ (nonnull UIImage *)jcbCardImage;
Swift
class func jcbCardImage() -> UIImage
-
An icon representing Mastercard.
Declaration
Objective-C
+ (nonnull UIImage *)masterCardCardImage;
Swift
class func masterCardCardImage() -> UIImage
-
An icon representing UnionPay.
Declaration
Objective-C
+ (nonnull UIImage *)unionPayCardImage;
Swift
class func unionPayCardImage() -> UIImage
-
An icon representing Visa.
Declaration
Objective-C
+ (nonnull UIImage *)visaCardImage;
Swift
class func visaCardImage() -> UIImage
-
An icon to use when the type of the card is unknown.
Declaration
Objective-C
+ (nonnull UIImage *)unknownCardCardImage;
Swift
class func unknownCardCardImage() -> UIImage
-
This returns the appropriate icon for the specified card brand.
Declaration
Objective-C
+ (nonnull UIImage *)brandImageForCardBrand:(STPCardBrand)brand;
Swift
class func brandImage(for brand: STPCardBrand) -> UIImage
-
This returns the appropriate icon for the specified bank brand.
Declaration
Objective-C
+ (nonnull UIImage *)brandImageForFPXBankBrand:(STPFPXBankBrand)brand;
Swift
class func brandImage(for brand: STPFPXBankBrand) -> UIImage
-
An icon representing FPX.
Declaration
Objective-C
+ (nonnull UIImage *)fpxLogo;
Swift
class func fpxLogo() -> UIImage
-
A large branding image for FPX.
Declaration
Objective-C
+ (nonnull UIImage *)largeFpxLogo;
Swift
class func largeFpxLogo() -> UIImage
-
This returns the appropriate icon for the specified card brand as a single color template that can be tinted
Declaration
Objective-C
+ (nonnull UIImage *)templatedBrandImageForCardBrand:(STPCardBrand)brand;
Swift
class func templatedBrandImage(for brand: STPCardBrand) -> UIImage
-
This returns a small icon indicating the CVC location for the given card brand.
Declaration
Objective-C
+ (nonnull UIImage *)cvcImageForCardBrand:(STPCardBrand)brand;
Swift
class func cvcImage(for brand: STPCardBrand) -> UIImage
-
This returns a small icon indicating a card number error for the given card brand.
Declaration
Objective-C
+ (nonnull UIImage *)errorImageForCardBrand:(STPCardBrand)brand;
Swift
class func errorImage(for brand: STPCardBrand) -> UIImage