STPFPXBank
public class STPFPXBank : NSObject
Convenience methods for using FPX bank brands.
-
Returns a string representation for the provided bank brand; i.e.
STPFPXBank.stringFrom(brand:.uob) == "UOB Bank"
.Declaration
Swift
@objc public static func stringFrom(_ 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
Swift
@objc public static func brandFrom(_ 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
Swift
@objc public static func identifierFrom(_ 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
Swift
@objc public static func bankCodeFrom(_ 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.