OPPBinInfo
@interface OPPBinInfo : NSObject
Class to encapsulate a BIN (Bank Identification Number) details of a payment card.
-
Creates OPPBinInfo info object with the provided list of brands, BIN type and type of payment method/card.
Declaration
Objective-C
- (nullable instancetype)initWithBrands:(nonnull NSArray<NSString *> *)brands binType:(nullable NSString *)binType type:(nullable NSString *)type;
Swift
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.
Return Value
an
OPPBinInfo
object. -
Creates OPPBinInfo info object with the provided list of brands, BIN type and type of payment method/card.
Declaration
Objective-C
+ (nullable instancetype)binInfoWithBrands:(nonnull NSArray<NSString *> *)brands binType:(nullable NSString *)binType type:(nullable NSString *)type;
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.
-
Payments brands which are related to BIN.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSArray<NSString *> *_Nonnull brands;
Swift
var brands: [String] { get }
-
Type of the BIN detected by the BIN Service. Possible values: PERSONAL or COMMERCIAL.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *binType;
Swift
var binType: String? { get }
-
Payment method/card type detected by the BIN Service. Possible values: DEBIT, CREDIT, CHARGE CARD.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *type;
Swift
var type: String? { get }