LUCreditCard Class Reference
Inherits from | LUAPIModel : NSObject |
Declared in | LUCreditCard.h LUCreditCard.m |
Overview
A user’s credit card to use for billing. Users can have any number of credit cards, but one will be
marked as promoted
, which mean it will be the first card attempted when a new charge needs to be
made.
Tasks
-
BIN
property -
creditCardDescription
property -
creditCardID
property -
cvv
property -
debit
property -
expirationMonth
property -
expirationYear
property -
last4Digits
property -
number
property -
postalCode
property -
promoted
property -
type
property
Properties
BIN
A string representing the BIN for the card in Braintree. This can be used to identify the origin of a specific card.
@property (nonatomic, copy, readonly) NSString *BIN
Discussion
A string representing the BIN for the card in Braintree. This can be used to identify the origin of a specific card.
Declared In
LUCreditCard.h
creditCardDescription
A string that describes the credit card. Includes the card’s type and last 4 digits.
@property (nonatomic, copy, readonly) NSString *creditCardDescription
Discussion
A string that describes the credit card. Includes the card’s type and last 4 digits.
Declared In
LUCreditCard.h
creditCardID
The unique identifier for this credit card.
@property (nonatomic, copy, readonly) NSNumber *creditCardID
Discussion
The unique identifier for this credit card.
Declared In
LUCreditCard.h
cvv
The credit card’s CVV (card verification value).
@property (nonatomic, copy) NSString *cvv
Discussion
The credit card’s CVV (card verification value).
Declared In
LUCreditCard.h
debit
Specifies if the card is a debit card.
@property (nonatomic, assign, readonly) BOOL debit
Discussion
Specifies if the card is a debit card.
Declared In
LUCreditCard.h
expirationMonth
The card’s expiration month, as a number from 1 to 12.
@property (nonatomic, copy) NSNumber *expirationMonth
Discussion
The card’s expiration month, as a number from 1 to 12.
Declared In
LUCreditCard.h
expirationYear
The card’s expiration year as a four digit number (e.g. 2013).
@property (nonatomic, copy) NSNumber *expirationYear
Discussion
The card’s expiration year as a four digit number (e.g. 2013).
Declared In
LUCreditCard.h
last4Digits
The last 4 digits of the credit card. This is returned by the server, and does not need to be set when creating a new card.
@property (nonatomic, copy, readonly) NSString *last4Digits
Discussion
The last 4 digits of the credit card. This is returned by the server, and does not need to be set when creating a new card.
Declared In
LUCreditCard.h
number
The credit card number. Should be set when creating a credit card. Will be nil when retrieving cards from the server.
@property (nonatomic, copy) NSString *number
Discussion
The credit card number. Should be set when creating a credit card. Will be nil when retrieving cards from the server.
Declared In
LUCreditCard.h
postalCode
The postal code (zip code) associated with the card.
@property (nonatomic, copy) NSString *postalCode
Discussion
The postal code (zip code) associated with the card.
Declared In
LUCreditCard.h
promoted
Specifies if the card is currently promoted.
@property (nonatomic, assign) BOOL promoted
Discussion
Specifies if the card is currently promoted.
Declared In
LUCreditCard.h
type
The credit card type (e.g. Visa, MasterCard, etc). This will be returned by the server, but is not required when creating credit cards.
@property (nonatomic, copy, readonly) NSString *type
Discussion
The credit card type (e.g. Visa, MasterCard, etc). This will be returned by the server, but is not required when creating credit cards.
Declared In
LUCreditCard.h