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 service.

  • 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()