OPPBinInfo
@objc
public final class OPPBinInfo : NSObject
Class to encapsulate a BIN (Bank Identification Number) details of a payment card.
-
Payments brands which are related to BIN.
Declaration
Swift
@objc public private(set) var brands: [String] { get }
-
Type of the BIN detected by the BIN Service. Possible values: PERSONAL or COMMERCIAL.
Declaration
Swift
@objc public private(set) var binType: String? { get }
-
Payment method/card type detected by the BIN Service. Possible values: DEBIT, CREDIT, CHARGE CARD.
Declaration
Swift
@objc public private(set) var type: String? { get }
-
Creates OPPBinInfo info object with the provided list of brands, BIN type and type of payment method/card.
Declaration
Swift
@objc public init?(brands: [String], binType: String?, type: String?)
Parameters
brands
Payments brands which are related to BIN.
binType
Type of the BIN detected by the BIN Service. PERSONAL or COMMERCIAL.
type
Payment method/card type detected by the BIN Service. DEBIT, CREDIT or CHARGE CARD.
-
Creates OPPBinInfo info object with the provided list of brands, BIN type and type of payment method/card.
Declaration
Swift
@objc public static func binInfo(brands: [String], binType: String?, type: String?) -> OPPBinInfo?
Parameters
brands
Payments brands which are related to BIN.
binType
Type of the BIN detected by the BIN Service. PERSONAL or COMMERCIAL.
type
Payment method/card type detected by the BIN Service. DEBIT, CREDIT or CHARGE CARD.
Return Value
An
OPPBinInfo
object or nil.