STPCardParams
@interface STPCardParams : NSObject <STPFormEncodable, NSCopying>
Representation of a user’s credit card details. You can assemble these with information that your user enters and then create Stripe tokens with them using an STPAPIClient.
-
The card’s number.
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *number;
Swift
var number: String? { get set }
-
The last 4 digits of the card’s number, if it’s been set, otherwise nil.
Declaration
Objective-C
- (nullable NSString *)last4;
Swift
func last4() -> String?
-
The card’s expiration month.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSUInteger expMonth;
Swift
var expMonth: UInt { get set }
-
The card’s expiration year.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSUInteger expYear;
Swift
var expYear: UInt { get set }
-
The card’s security code, found on the back.
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *cvc;
Swift
var cvc: String? { get set }
-
The cardholder’s name.
Note
Changing this property will also changing the name of the param’saddress
property.Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *name;
Swift
var name: String? { get set }
-
The cardholder’s address.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nonnull) STPAddress *address;
Swift
var address: STPAddress { get set }
-
Three-letter ISO currency code representing the currency paid out to the bank account. This is only applicable when tokenizing debit cards to issue payouts to managed accounts. You should not set it otherwise. The card can then be used as a transfer destination for funds in this currency.
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *currency;
Swift
var currency: String? { get set }
-
Deprecated
Use address.line1
The first line of the cardholder’s address
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *addressLine1;
Swift
var addressLine1: String? { get set }
-
Deprecated
Use address.line2
The second line of the cardholder’s address
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *addressLine2;
Swift
var addressLine2: String? { get set }
-
Deprecated
Use address.city
The city of the cardholder’s address
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *addressCity;
Swift
var addressCity: String? { get set }
-
Deprecated
Use address.state
The state of the cardholder’s address
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *addressState;
Swift
var addressState: String? { get set }
-
Deprecated
Use address.postalCode
The zip code of the cardholder’s address
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *addressZip;
Swift
var addressZip: String? { get set }
-
Deprecated
Use address.country
The country of the cardholder’s address
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *addressCountry;
Swift
var addressCountry: String? { get set }