Functions
The following functions are available globally.
-
This function should not be called directly.
It is used by the SDK when it is built as a static library to force the compiler to link in category methods regardless of the integrating app’s compiler flags.
Declaration
Objective-C
void linkSTPAPIClientApplePayCategory()
Swift
func linkSTPAPIClientApplePayCategory()
-
Returns a string representation for the provided card brand; i.e.
[NSString stringFromBrand:STPCardBrandVisa] == @"Visa"
.Declaration
Objective-C
NSString *STPStringFromCardBrand(STPCardBrand brand)
Swift
func STPStringFromCardBrand(_ 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.
-
Returns a string representation for the provided bank brand; i.e.
[NSString stringFromBrand:STPCardBrandUob] == @"UOB Bank"
.Declaration
Objective-C
NSString *STPStringFromFPXBankBrand(STPFPXBankBrand brand)
Swift
func STPStringFromFPXBankBrand(_ brand: STPFPXBankBrand) -> 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.
-
Returns a bank brand provided a string representation identifying a bank brand; i.e.
STPFPXBankBrandFromIdentifier(@"uob") == STPCardBrandUob
.Declaration
Objective-C
STPFPXBankBrand STPFPXBankBrandFromIdentifier(NSString *identifier)
Swift
func STPFPXBankBrandFromIdentifier(_ identifier: String!) -> STPFPXBankBrand
Parameters
identifier
The identifier for the brand
Return Value
The STPFPXBankBrand enum value
-
Returns a string representation identifying the provided bank brand; i.e.
STPIdentifierFromFPXBankBrand(STPCardBrandUob) == @"uob"
.Declaration
Objective-C
NSString *STPIdentifierFromFPXBankBrand(STPFPXBankBrand brand)
Swift
func STPIdentifierFromFPXBankBrand(_ brand: STPFPXBankBrand) -> String!
Parameters
brand
The brand you want to convert to a string
Return Value
A string representing the brand, suitable for using with the Stripe API.
-
Returns the code identifying the provided bank brand in the FPX status API; i.e.
STPIdentifierFromFPXBankBrand(STPCardBrandUob) == @"UOB0226"
.Declaration
Objective-C
NSString *STPBankCodeFromFPXBankBrand(STPFPXBankBrand brand, BOOL isBusiness)
Swift
func STPBankCodeFromFPXBankBrand(_ brand: STPFPXBankBrand, _ isBusiness: Bool) -> String!
Parameters
brand
The brand you want to convert to an FPX bank code
isBusiness
Requests the code for the business version of this bank brand, which may be different from the code used for individual accounts
Return Value
A string representing the brand, suitable for checking against the FPX status API.
-
This function should not be called directly.
It is used by the SDK when it is built as a static library to force the compiler to link in category methods regardless of the integrating app’s compiler flags.
Declaration
Objective-C
void linkNSErrorCategory()
Swift
func linkNSErrorCategory()
-
This function should not be called directly.
It is used by the SDK when it is built as a static library to force the compiler to link in category methods regardless of the integrating app’s compiler flags.
Declaration
Objective-C
void linkUINavigationBarThemeCategory()
Swift
func linkUINavigationBarThemeCategory()