STPImageLibrary
public class 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
Swift
@objc public class func applePayCardImage() -> UIImage
-
An icon representing American Express.
Declaration
Swift
@objc public class func amexCardImage() -> UIImage
-
An icon representing Diners Club.
Declaration
Swift
@objc public class func dinersClubCardImage() -> UIImage
-
An icon representing Discover.
Declaration
Swift
@objc public class func discoverCardImage() -> UIImage
-
An icon representing JCB.
Declaration
Swift
@objc public class func jcbCardImage() -> UIImage
-
An icon representing Mastercard.
Declaration
Swift
@objc public class func mastercardCardImage() -> UIImage
-
An icon representing UnionPay.
Declaration
Swift
@objc public class func unionPayCardImage() -> UIImage
-
An icon representing Visa.
Declaration
Swift
@objc public class func visaCardImage() -> UIImage
-
An icon to use when the type of the card is unknown.
Declaration
Swift
@objc public class func unknownCardCardImage() -> UIImage
-
This returns the appropriate icon for the specified card brand.
Declaration
Swift
@objc(brandImageForCardBrand:) public class func cardBrandImage(for brand: STPCardBrand) -> UIImage
-
This returns the appropriate icon for the specified bank brand.
Declaration
Swift
@objc(brandImageForFPXBankBrand:) public class func fpxBrandImage(for brand: STPFPXBankBrand) -> UIImage
-
An icon representing FPX.
Declaration
Swift
@objc public class func fpxLogo() -> UIImage
-
A large branding image for FPX.
Declaration
Swift
@objc public class func largeFpxLogo() -> UIImage
-
An icon representing Afterpay.
Declaration
Swift
@objc public class func afterpayLogo(locale: Locale = Locale.current) -> UIImage
-
This returns the appropriate icon for the affirm logo
Declaration
Swift
@objc public class func affirmLogo() -> UIImage
-
This returns the appropriate icon for the specified card brand as a single color template that can be tinted
Declaration
Swift
@objc(templatedBrandImageForCardBrand:) public class func templatedBrandImage( for brand: STPCardBrand ) -> UIImage
-
This returns a small icon indicating the CVC location for the given card brand.
Declaration
Swift
@objc(cvcImageForCardBrand:) public class func cvcImage(for brand: STPCardBrand) -> UIImage
-
This returns a small icon indicating a card number error for the given card brand.
Declaration
Swift
@objc(errorImageForCardBrand:) public class func errorImage(for brand: STPCardBrand) -> UIImage